From 1906a2283e10713232141886afd11dad96efcee1 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sat, 18 Jun 2016 10:23:30 +0200 Subject: [PATCH] Issue 4899/5: Remove Translator::method_find_base It's basically a trivial replacement and confuses more than it helps. --- lily/include/translator.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lily/include/translator.hh b/lily/include/translator.hh index 5197305ea2..d4ea41f934 100644 --- a/lily/include/translator.hh +++ b/lily/include/translator.hh @@ -43,7 +43,10 @@ #define DECLARE_TRANSLATOR_CALLBACKS(NAME) \ template \ - static SCM method_finder () { return method_find_base (); } \ + static SCM method_finder () \ + { \ + return Callback0_wrapper::make_smob (); \ + } \ template \ static SCM method_finder () \ { \ @@ -154,10 +157,6 @@ protected: // should be private. return SCM_UNSPECIFIED; } - template - static SCM - method_find_base () { return Callback0_wrapper::make_smob (); } - // Fallback for non-overriden callbacks for which &T::x degrades to // &Translator::x template -- 2.39.2