]> git.donarmstrong.com Git - lilypond.git/commitdiff
removed unused macro, function and file
authorBernard Hurley <address@hidden>
Wed, 26 Jan 2011 02:23:44 +0000 (02:23 +0000)
committerGraham Percival <graham@percival-music.ca>
Thu, 27 Jan 2011 13:13:54 +0000 (13:13 +0000)
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.

flower/include/virtual-methods.hh
flower/rtti.cc [deleted file]

index a38bf154d72e2a6b0f911a377e395d09bcf81f69..1d6b02388eb059f1d53dad8779fe929ba22b7602 100644 (file)
 #include <typeinfo>
 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 (file)
index 39941f8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <cctype>
-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;
-}