From 757911abd7a06ff5723f5280cc89dea99b0a2bb5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 21 Mar 2003 21:14:58 +0000 Subject: [PATCH] Warning tidy up git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4610 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/lang.cxx | 1 - SWIG/Source/Modules/ocaml.cxx | 3 --- SWIG/Source/Modules/python.cxx | 4 ---- 3 files changed, 8 deletions(-) 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++);