]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.129
authorfred <fred>
Wed, 27 Mar 2002 00:48:53 +0000 (00:48 +0000)
committerfred <fred>
Wed, 27 Mar 2002 00:48:53 +0000 (00:48 +0000)
lily/thread-devnull-engraver.cc

index 4006c476a243d2f539bec3039a9abb135794fef5..83c1f2a36f6db13778afcf8b5b95f24227e0855f 100644 (file)
@@ -25,23 +25,18 @@ ADD_THIS_TRANSLATOR (Thread_devnull_engraver);
 void
 Thread_devnull_engraver::acknowledge_grob (Grob_info i)
 {
-  /*
-    FIXME: coriolan-fix hack -- ff  geen inspiratie
-    
-    We should have at least three modes:
-    
-      1. Never -- do nothing
-      2. Allways -- junk everythingallways
-      3. Regular: junk according to two/unison/unisilence/soloADue
+  SCM s = get_property ("devNullThread");
+#if 0
+  /* No need */
+  if (gh_equal_p (s, ly_symbol2scm ("never")))
+    return;
+#endif
 
-    but how shall we do that?
-
-    Hmm, maybe just: threadDevNull = 'never|'allways|...
-   */
-  if (!to_boolean (get_property ("disableDevNullThread"))
-      && daddy_trans_l_->id_str_.left_str (3) == "two"
-      && (to_boolean (get_property ("unison"))
-         || to_boolean (get_property ("unisilence")))
-      && to_boolean (get_property ("soloADue")))
+  if (gh_equal_p (s, ly_symbol2scm ("allways"))
+      || (s == SCM_EOL
+         && daddy_trans_l_->id_str_.left_str (3) == "two"
+         && (to_boolean (get_property ("unison"))
+             || to_boolean (get_property ("unisilence")))
+         && to_boolean (get_property ("soloADue"))))
     i.elem_l_->suicide ();
 }