diff --git a/SWIG/Source/Modules/lang.cxx b/SWIG/Source/Modules/lang.cxx index 6a17b838b..35704b7d2 100644 --- a/SWIG/Source/Modules/lang.cxx +++ b/SWIG/Source/Modules/lang.cxx @@ -1358,7 +1358,6 @@ int Language::unrollVirtualMethods(Node *n, Hash *vm, int default_director, int &virtual_destructor) { - int top = (n == parent); Node *ni; String *nodeType; String *storage; diff --git a/SWIG/Source/Modules/ocaml.cxx b/SWIG/Source/Modules/ocaml.cxx index a6e6bda59..399567576 100755 --- a/SWIG/Source/Modules/ocaml.cxx +++ b/SWIG/Source/Modules/ocaml.cxx @@ -616,8 +616,6 @@ public: int numargs; int numreq; int newobj = Getattr(n,"feature:new") ? 1 : 0; - int director = Swig_directormethod(n); - int directorbase = Swig_directorbase(n); Node *classNode = Swig_methodclass(n); int hasVirtual = (classNode && (Getattr(classNode, "hasVirtual") != 0)); String *nodeType = Getattr(n, "nodeType"); @@ -1542,7 +1540,6 @@ public: * to SWIGTYPE) called DIRECTORTYPE? */ if (SwigType_ispointer(ptype) || SwigType_isreference(ptype)) { - String *base = SwigType_base(ptype); Node *module = Getattr(parent, "module"); Node *target = Swig_directormap(module, ptype); sprintf(source, "obj%d", idx++); diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index e5ef26f94..c3d322ded 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -654,9 +654,6 @@ public: int allow_kwargs = (use_kw || Getattr(n,"feature:kwargs")) ? 1 : 0; /* member of a director class? */ - int director = Swig_directormethod(n); - int directorbase = Swig_directorbase(n); - Node *classNode = Swig_methodclass(n); String *nodeType = Getattr(n, "nodeType"); int constructor = (!Cmp(nodeType, "constructor")); String *storage = Getattr(n,"storage"); @@ -1380,7 +1377,6 @@ public: * to SWIGTYPE) called DIRECTORTYPE? */ if (SwigType_ispointer(ptype) || SwigType_isreference(ptype)) { - String *base = SwigType_base(ptype); Node *module = Getattr(parent, "module"); Node *target = Swig_directormap(module, ptype); sprintf(source, "obj%d", idx++);