From e429a891c9bff73f5d549b51b3f6fe81e6767040 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 13 May 2017 16:16:17 +0100 Subject: [PATCH] Revert "csharp : noexcept method can't raise Swig::DirectorPureVirtualException" This reverts commit 9dcf10138e5053d50a37a7837dc86e58d6b96dae. --- Source/Modules/csharp.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/Modules/csharp.cxx b/Source/Modules/csharp.cxx index a8792f7ea..154fadac5 100644 --- a/Source/Modules/csharp.cxx +++ b/Source/Modules/csharp.cxx @@ -403,7 +403,6 @@ public: if (directorsEnabled()) { Printf(f_runtime, "#define SWIG_DIRECTORS\n"); - Printf(f_runtime, "#include \n"); /* Emit initial director header and director code: */ Swig_banner(f_directors_h); @@ -3936,12 +3935,7 @@ public: } Delete(super_call); } else { - if (Getattr(n, "noexcept")) { - Printf(w->code, " //can't throw exception here\n"); - Printf(w->code, " assert(0 && \"swig DirectorPureVirtualException %s::%s\");", SwigType_namestr(c_classname), SwigType_namestr(name)); - } else { - Printf(w->code, " throw Swig::DirectorPureVirtualException(\"%s::%s\");\n", SwigType_namestr(c_classname), SwigType_namestr(name)); - } + Printf(w->code, " throw Swig::DirectorPureVirtualException(\"%s::%s\");\n", SwigType_namestr(c_classname), SwigType_namestr(name)); } if (!ignored_method)