]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.1
authorfred <fred>
Tue, 26 Mar 2002 21:28:25 +0000 (21:28 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:28:25 +0000 (21:28 +0000)
lily/axis-group-element.cc
lily/include/command-request.hh
lily/include/graphical-element.hh
lily/include/request.hh
lily/include/score-element.hh
lily/include/translator.hh

index 928f64de0c6799c4b1ea34e0c72709ee5c0e0874..a19d26c6c310669b43fcc6f2cba668111458159c 100644 (file)
@@ -76,12 +76,5 @@ Axis_group_element::Axis_group_element ()
   transparent_b_ = true;
 }
 
-Axis_group_element*
-Axis_group_element::access_Axis_group_element ()
-{
-  return this;
-}
-
-
 
 IMPLEMENT_IS_TYPE_B2(Axis_group_element, Score_element, Graphical_axis_group);
index a0afdc8f5e996765fa9bc54dce9d2fee455e8ea3..96c010322bcd41aad7502fc8415861d733ac6309 100644 (file)
@@ -21,18 +21,6 @@ class Command_req  : public virtual Request  {
 public:
   REQUESTMETHODS(Command_req);
 
-    DEFAULTACCESSOR(Measure_grouping_req)
-    DEFAULTACCESSOR(Clef_change_req)
-    DEFAULTACCESSOR(Key_change_req)
-    DEFAULTACCESSOR(Partial_measure_req)
-    DEFAULTACCESSOR(Time_signature_change_req)
-    DEFAULTACCESSOR(Bar_req)
-    DEFAULTACCESSOR(Cadenza_req)
-    DEFAULTACCESSOR(Timing_req)
-    DEFAULTACCESSOR(Command_script_req)
-    DEFAULTACCESSOR(Break_req)
-    DEFAULTACCESSOR(Mark_req)
-  DEFAULTACCESSOR(Bracket_req)
 };
 
 
@@ -64,7 +52,6 @@ public:
 class Timing_req  : public Command_req  {
 public:
   REQUESTMETHODS(Timing_req);
-  DEFAULTACCESSOR(Tempo_req)
 };
 
 
index 3a57588a7d3e9162af42a1da6d23df9a4448cff2..d6bd8babe62b225178a9d865b3e6706c1a433c1f 100644 (file)
@@ -32,8 +32,6 @@ class Graphical_element
   bool cached_valid_b_a_[NO_AXES];
 public:
 
-  // suck me plenty
-  virtual Score_element* access_Score_element () { return 0; }
   void set_empty (bool);
 
   bool empty_b () const;
index 7d976a648e5dfe7b015bdb35571ed4ff7481cf6e..4394fce306e9e37fd7ba461f0c78275b63b9d4ab 100644 (file)
@@ -17,8 +17,6 @@
 #include "music.hh"
 #include "direction.hh"
 
-#define DEFAULTACCESSOR(T)  virtual T *access_ ## T () { return 0; }
-
 
 /** An atom of musical information.  This is an abstract class for any
   piece of music that does not contain other Music.
@@ -35,17 +33,6 @@ public:
   DECLARE_MY_RUNTIME_TYPEINFO;
   VIRTUAL_COPY_CONS(Request,Music);
     
-  /*  accessors for children
-      maybe checkout RTTI
-  */
-
-  DEFAULTACCESSOR(Barcheck_req)
-  DEFAULTACCESSOR(Script_req)
-  DEFAULTACCESSOR(Span_req)
-  DEFAULTACCESSOR(Spacing_req)
-  DEFAULTACCESSOR(Musical_req)
-  DEFAULTACCESSOR(Command_req)
-    
   bool equal_b (Request*) const;
 protected:
   virtual bool do_equal_b (Request*) const;
@@ -54,7 +41,6 @@ protected:
 
 
 #define REQUESTMETHODS(T)      \
-virtual T * access_ ## T() { return this;}\
 DECLARE_MY_RUNTIME_TYPEINFO;\
 VIRTUAL_COPY_CONS(T, Request);\
 virtual void do_print() const
index e9ea8aff9910f52a9bfd76e7365ac934474d6e9d..4ad95c73718c13835cbcee0b565e46a59a496e84 100644 (file)
@@ -52,16 +52,6 @@ public:
     */
   void add_dependency (Score_element*);    
 
-  /*
-    virtual accessors
-    */
-
-  virtual Spanner* access_Spanner ()  { return 0; }
-  virtual Span_bar* access_Span_bar ()  { return 0; }
-  virtual Axis_group_element * access_Axis_group_element () { return 0; }
-  virtual Score_element* access_Score_element () { return this; }
-  
-  virtual Item * access_Item () { return 0; }
   virtual Line_of_score * line_l () const;
   virtual bool linked_b () const;
   SCORE_ELEMENT_CLONE (Score_element);
index 57d45e4d982a5f1d5b933aeb8c5c6399dcbe8759..b0257a4448d6c041aa6e93a076a612e21075b9b0 100644 (file)
@@ -66,9 +66,6 @@ public:
   Music_output_def *output_def_l () const;
   
   virtual Moment now_moment () const;  
-  virtual Engraver *access_Engraver () { return 0; }
-  virtual Performer *access_Performer() { return 0; }
-  virtual Translator_group * access_Translator_group () { return 0; }
 
 protected:
    enum {