Drop code dealing with tmap:ctype:out which is never used
This typemap attribute is not used with C (so far), there is no point in checking for it in the code.
This commit is contained in:
parent
6e0e728a14
commit
11426ac1cd
1 changed files with 2 additions and 12 deletions
|
|
@ -747,18 +747,8 @@ ready:
|
||||||
String *tm;
|
String *tm;
|
||||||
|
|
||||||
if ((tm = Swig_typemap_lookup("ctype", n, "", 0))) {
|
if ((tm = Swig_typemap_lookup("ctype", n, "", 0))) {
|
||||||
// handle simple typemap cases
|
substituteResolvedType(target, type, tm);
|
||||||
String *ctypeout = Getattr(n, "tmap:ctype:out");
|
return_type = tm;
|
||||||
if (ctypeout)
|
|
||||||
{
|
|
||||||
return_type = ctypeout;
|
|
||||||
Printf(stdout, "Obscure ctype:out found! O.o\n");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
substituteResolvedType(target, type, tm);
|
|
||||||
return_type = tm;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Swig_warning(WARN_C_TYPEMAP_CTYPE_UNDEF, input_file, line_number, "No ctype typemap defined for %s\n", SwigType_str(type, 0));
|
Swig_warning(WARN_C_TYPEMAP_CTYPE_UNDEF, input_file, line_number, "No ctype typemap defined for %s\n", SwigType_str(type, 0));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue