]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/identifier.cc
release: 1.3.107
[lilypond.git] / lily / identifier.cc
index d3d0e7221b7024d83614dc6b29aaab9c783070f7..28e450ac496c99cd4a8c2a41d15ec4736ce94552 100644 (file)
   JUNKTHIS!
  */
 #include <assert.h>
+
 #include "music-output-def.hh"
 #include "score.hh"
 #include "identifier.hh"
 #include "my-lily-lexer.hh"
 #include "debug.hh"
-#include "translator-group.hh"
 #include "ly-smobs.icc"
 
 
@@ -61,30 +61,6 @@ Identifier::do_str () const
   return "";
 }
 
-void
-Identifier::print () const
-{
-  DEBUG_OUT << "identifier ";
-  do_print ();
-}
-void
-Identifier::do_print () const
-{
-}
-
-/* ugh. */
-#define DEFAULT_PRINT(Class) \
-void \
-Class ## _identifier::do_print () const { \
-  Class *cl = ((Class ## _identifier *)this)->access_content_ ## Class(false);\
-  cl->print (); \
-}
-
-
-
-DEFAULT_PRINT(Translator_group);
-DEFAULT_PRINT(Score);
-DEFAULT_PRINT(Music_output_def);
 
 /* ugh. */
 #define DUMMY_STR(Class) \
@@ -93,21 +69,9 @@ Class ## _identifier::do_str () const { \
   return String (#Class); \
 }
 
-
-DUMMY_STR(Translator_group);
 DUMMY_STR(Score);
 DUMMY_STR(Music_output_def);
-DUMMY_STR(Duration);
-
-#define STRING_PRINT(Class) \
-void \
-Class ## _identifier::do_print () const\
-{\
-  DEBUG_OUT << do_str () << '\n';\
-}\
-
 
-STRING_PRINT(Duration);
   
 #define DEFAULT_STR(Class) \
 String \
@@ -150,13 +114,9 @@ Class ## _identifier::Class ## _identifier (Class ## _identifier const &s) \
 } 
 
 
-IMPLEMENT_ID_CLASS(Duration);
-IMPLEMENT_ID_CLASS(Translator_group);
 IMPLEMENT_ID_CLASS(Score);
 IMPLEMENT_ID_CLASS(Music_output_def);
-VIRTUAL_ACCESSOR(Translator_group);
 VIRTUAL_ACCESSOR(Music_output_def);
-DEFAULT_ACCESSOR(Duration);
 DEFAULT_ACCESSOR(Score);