]> git.donarmstrong.com Git - lilypond.git/commitdiff
(start_translation_timestep): remove first_b_
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 10 Jan 2004 11:08:38 +0000 (11:08 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 10 Jan 2004 11:08:38 +0000 (11:08 +0000)
ChangeLog
lily/new-accidental-engraver.cc
lily/repeat-acknowledge-engraver.cc
lily/script-engraver.cc
lily/tie-performer.cc

index 44f51cdf5105f03d426c3521570b5d105c46bc54..604c39a2d2c8e011917e644d11e63e72a4570023 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-01-10  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/*.cc: cleanup of engraver initialize() functions.
+
+       * lily/repeat-acknowledge-engraver.cc
+       (start_translation_timestep): remove first_b_
+
        * lily/tab-note-heads-engraver.cc: listen to string number events
        inside < > too. (backportme).
 
index 5a12cf716a8236d3331a73da0460d764bef6c336..7395aeda343a07c965d90575e380cf7240c5a78e 100644 (file)
@@ -64,7 +64,6 @@ protected:
   virtual void process_music ();
   virtual void acknowledge_grob (Grob_info);
   virtual void stop_translation_timestep ();
-  virtual void initialize ();
   virtual void process_acknowledged_grobs ();
   virtual void finalize ();
   virtual void process_grobs_first_pass ();
@@ -102,8 +101,8 @@ protected:
 
 New_accidental_engraver::New_accidental_engraver ()
 {
+  last_keysig_ = SCM_BOOL_F;
   accidental_placement_ = 0;
-  last_keysig_ = SCM_EOL;
 }
 
 /* inserts the source alist into the destination alist, erasing old entries.
@@ -167,13 +166,6 @@ static void set_property_on_family(Translator_group * trans, const char * sym, S
     }
 }
 
-void
-New_accidental_engraver::initialize ()
-{
-  // to ensure that process_music will initialize last_keysig_
-  last_keysig_ = SCM_BOOL_F;
-}
-
 /*
 calculates the number of accidentals on basis of the current local key sig
   (passed as argument)
index 53265a70e520c15880e7ac2b3222c85c21166248..8cfed2ea335439f7dd00851ffeab7b5956e2702b 100644 (file)
@@ -31,13 +31,11 @@ public:
   virtual void process_music ();
   virtual void initialize ();
 
-  bool first_b_;
 };
 
 void
 Repeat_acknowledge_engraver::initialize ()
 {
-  first_b_ = true;
   daddy_trans_->set_property ("repeatCommands", SCM_EOL);
 }
 
@@ -49,7 +47,6 @@ Repeat_acknowledge_engraver::Repeat_acknowledge_engraver ()
 void
 Repeat_acknowledge_engraver::start_translation_timestep ()
 {
-  first_b_ = true;
   Translator_group * tr = daddy_trans_->where_defined (ly_symbol2scm ("repeatCommands"));
   if (!tr)
     tr = daddy_trans_;
index 3defd89c8d298c77dbc051320748097393f329d2..9b7e1e769c5f1b391ca073ed4fd792f617ceaaeb 100644 (file)
@@ -33,19 +33,12 @@ public:
   TRANSLATOR_DECLARATIONS(Script_engraver);
 protected:
   virtual bool try_music (Music*);
-  virtual void initialize ();
   virtual void stop_translation_timestep ();
   virtual void start_translation_timestep ();
   virtual void process_music ();
   virtual void acknowledge_grob (Grob_info);
 };
 
-void
-Script_engraver::initialize ()
-{
-  scripts_.clear ();
-}
-
 bool
 Script_engraver::try_music (Music *r)
 {
index da9696c2a5890cf8dad25f40c3f15c2d80daf135..12ea01c52ee8517b8b2eb1c5ef09b5e5647fb650 100644 (file)
@@ -52,7 +52,6 @@ private:
   Link_array<Audio_tie> ties_;
   
 protected:
-  virtual void initialize ();
   virtual void start_translation_timestep ();
   virtual void stop_translation_timestep ();
   virtual void acknowledge_audio_element (Audio_element_info);
@@ -65,6 +64,7 @@ Tie_performer::Tie_performer ()
 {
   event_ = 0;
   ties_created_ = false;
+  prev_event_ = 0;
 }
 
 ENTER_DESCRIPTION (Tie_performer, "", "",
@@ -72,13 +72,6 @@ ENTER_DESCRIPTION (Tie_performer, "", "",
                   "", "", "");
 
 
-void
-Tie_performer::initialize ()
-{
-  event_ = 0;
-  prev_event_ = 0;
-}
-
 
 bool
 Tie_performer::try_music (Music *m)