No real changes, just remove an unused variable

"sobj" in C::classHandler() was not used at all.
This commit is contained in:
Vadim Zeitlin 2016-04-14 00:42:24 +02:00
commit 4962871cd9

View file

@ -1338,7 +1338,6 @@ ready:
virtual int classHandler(Node *n) { virtual int classHandler(Node *n) {
String *name = getNamespacedName(n); String *name = getNamespacedName(n);
String *sobj = NewString("");
List *baselist = Getattr(n, "bases"); List *baselist = Getattr(n, "bases");
if (CPlusPlus) { if (CPlusPlus) {
@ -1389,7 +1388,6 @@ ready:
// declare type for specific class in the proxy header // declare type for specific class in the proxy header
Printv(f_wrappers_types, "typedef struct SwigObj_", name, " ", name, ";\n\n", NIL); Printv(f_wrappers_types, "typedef struct SwigObj_", name, " ", name, ";\n\n", NIL);
Delete(sobj);
Delete(name); Delete(name);
return Language::classHandler(n); return Language::classHandler(n);
} }
@ -1408,7 +1406,6 @@ ready:
else else
Append(f_wrappers_types, "};\n\n"); Append(f_wrappers_types, "};\n\n");
Delete(sobj);
Delete(name); Delete(name);
} }
return SWIG_OK; return SWIG_OK;