From ed1eaefee4a4a558f06f2ad6affb75b37266e061 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 19 Oct 2006 22:49:44 +0000 Subject: [PATCH] remove unused variable in generated director code git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9465 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 1 - SWIG/Source/Modules/ruby.cxx | 1 - 2 files changed, 2 deletions(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index f2eb9a3bf..9e3b224cd 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1984,7 +1984,6 @@ public: /* Emit the function call */ if (director_method) { Append(f->code, "try {\n"); - Append(f->code, " Swig::UnknownExceptionHandler dh;\n"); } else { if (allow_thread) { Append(f->code, "{\n"); diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index 2db5b41ef..f3dc973f0 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -1190,7 +1190,6 @@ public: /* Emit the function call */ if (director_method) { Printf(f->code, "try {\n"); - Printf(f->code, " Swig::UnknownExceptionHandler dh;\n"); } emit_action(n,f);