Remove some useless code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dad2476091
commit
afec99c64f
1 changed files with 0 additions and 7 deletions
|
|
@ -1138,18 +1138,12 @@ int Language::callbackfunctionHandler(Node *n) {
|
||||||
String *type = Getattr(n, "type");
|
String *type = Getattr(n, "type");
|
||||||
String *name = Getattr(n, "name");
|
String *name = Getattr(n, "name");
|
||||||
String *parms = Getattr(n, "parms");
|
String *parms = Getattr(n, "parms");
|
||||||
String *cb = GetFlagAttr(n, "feature:callback");
|
|
||||||
String *cbname = Getattr(n, "feature:callback:name");
|
String *cbname = Getattr(n, "feature:callback:name");
|
||||||
String *calltype = NewStringf("(%s (*)(%s))(%s)", SwigType_str(type, 0), ParmList_str(parms), SwigType_namestr(name));
|
String *calltype = NewStringf("(%s (*)(%s))(%s)", SwigType_str(type, 0), ParmList_str(parms), SwigType_namestr(name));
|
||||||
SwigType *cbty = Copy(type);
|
SwigType *cbty = Copy(type);
|
||||||
SwigType_add_function(cbty, parms);
|
SwigType_add_function(cbty, parms);
|
||||||
SwigType_add_pointer(cbty);
|
SwigType_add_pointer(cbty);
|
||||||
|
|
||||||
if (!cbname) {
|
|
||||||
cbname = NewStringf(cb, symname);
|
|
||||||
Setattr(n, "feature:callback:name", cbname);
|
|
||||||
}
|
|
||||||
|
|
||||||
Setattr(n, "sym:name", cbname);
|
Setattr(n, "sym:name", cbname);
|
||||||
Setattr(n, "type", cbty);
|
Setattr(n, "type", cbty);
|
||||||
Setattr(n, "value", calltype);
|
Setattr(n, "value", calltype);
|
||||||
|
|
@ -1158,7 +1152,6 @@ int Language::callbackfunctionHandler(Node *n) {
|
||||||
if (!ns)
|
if (!ns)
|
||||||
constantWrapper(n);
|
constantWrapper(n);
|
||||||
|
|
||||||
Delete(cbname);
|
|
||||||
Delete(cbty);
|
Delete(cbty);
|
||||||
|
|
||||||
Swig_restore(n);
|
Swig_restore(n);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue