]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/score-engraver.cc
optimise skylines.
[lilypond.git] / lily / score-engraver.cc
index 9ad0998cfb9a4b760758540e19b74b7763ff88ec..b70ead4349d3f356228f101c4b3e9719d4c88754 100644 (file)
@@ -20,7 +20,6 @@
 #include "paper-column-engraver.hh"
 #include "paper-column.hh"
 #include "paper-score.hh"
-#include "stream-event.hh"
 #include "system.hh"
 #include "warn.hh"
 
@@ -100,6 +99,20 @@ Score_engraver::connect_to_context (Context *c)
   d->add_listener (GET_LISTENER (finish), ly_symbol2scm ("Finish"));
 }
 
+/*
+  uncovered:
+  
+  check_removal always returns false for Score contexts, it has been that way 
+since I joined the project. There is a reason for this: The typeset score is 
+stored in the Score_engraver, which in turn is accessed through the 
+Global_context returned by ly:run-translator. So the score-translator must be 
+connected to the score-context after run-translator finishes.
+
+I plan to change this: we should junk run-translator, and instead keep track 
+of both context and translator in the SCM code, and access the typeset score 
+directly via the created global-translator. Then it would be possible to 
+disconnect score-translators at iteration time. -es
+ */
 void
 Score_engraver::disconnect_from_context ()
 {
@@ -157,15 +170,6 @@ Score_engraver::typeset_all ()
   elems_.clear ();
 }
 
-bool
-Score_engraver::try_music (Music *m)
-{
-  if (Engraver_group::try_music (m))
-    return true;
-
-  return false;
-}
-
 ADD_TRANSLATOR_GROUP (Score_engraver,
                      /* doc */ "Top level engraver. Takes care of generating columns and the complete  system (ie. System) "
                      "\n\n "
@@ -177,9 +181,6 @@ ADD_TRANSLATOR_GROUP (Score_engraver,
                      "that there are no beams or notes that prevent a breakpoint.) ",
                      /* create */
                      "System ",
-
-                     /* accept */
-                     "break-event",
                      
                      /* read */
                      "currentMusicalColumn "