From 6e96e095f392e1237365c7b238e25b968f94e45e Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Fri, 9 Sep 2016 07:18:00 -0400 Subject: [PATCH] remove unused function --- wrap/Class.cpp | 16 ++++++++-------- wrap/Class.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wrap/Class.cpp b/wrap/Class.cpp index ea69c18be..5e41dfaf0 100644 --- a/wrap/Class.cpp +++ b/wrap/Class.cpp @@ -58,14 +58,14 @@ static void handleException(const out_of_range& oor, } /* ************************************************************************* */ -Method& Class::mutableMethod(Str key) { - try { - return methods_.at(key); - } catch (const out_of_range& oor) { - handleException(oor, methods_); - throw runtime_error("Internal error in wrap"); - } -} +// Method& Class::mutableMethod(Str key) { +// try { +// return methods_.at(key); +// } catch (const out_of_range& oor) { +// handleException(oor, methods_); +// throw runtime_error("Internal error in wrap"); +// } +// } /* ************************************************************************* */ const Method& Class::method(Str key) const { diff --git a/wrap/Class.h b/wrap/Class.h index cc963a1fb..2864c7c66 100644 --- a/wrap/Class.h +++ b/wrap/Class.h @@ -59,7 +59,7 @@ private: boost::optional parentClass; ///< The *single* parent Methods methods_; ///< Class methods - Method& mutableMethod(Str key); + // Method& mutableMethod(Str key); public: