From: Bernard Hurley Date: Wed, 26 Jan 2011 02:23:44 +0000 (+0000) Subject: removed unused macro, function and file X-Git-Tag: release/2.13.47-1~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=099e315e3c496c8d3b069949a40989125d83712c;p=lilypond.git removed unused macro, function and file The macro "classname" defined in flower/include/virtual-methods.hh is never used. If it is removed then the function demangle_classname will never be referenced, and hence file flower/rtti.cc can be removed. I am assuming that they have not been added by someone who intends to use them in future. --- diff --git a/flower/include/virtual-methods.hh b/flower/include/virtual-methods.hh index a38bf154d7..1d6b02388e 100644 --- a/flower/include/virtual-methods.hh +++ b/flower/include/virtual-methods.hh @@ -23,10 +23,6 @@ #include using namespace std; -#define classname(class_ptr) demangle_classname (typeid (* (class_ptr))) - -char const * -demangle_classname (type_info const &); /* diff --git a/flower/rtti.cc b/flower/rtti.cc deleted file mode 100644 index 39941f8f74..0000000000 --- a/flower/rtti.cc +++ /dev/null @@ -1,13 +0,0 @@ -#include -using namespace std; - -#include "virtual-methods.hh" - -char const * -demangle_classname (type_info const &t) -{ - char const *s = t.name (); - while (isdigit (*s)) - s++; - return s; -}