]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
* buildscripts/new-chords.py (help): add help text
[lilypond.git] / lily / swallow-engraver.cc
index 476184e6cb08cb4b171094d451069d4fd2054c03..989e78c271fd4b569d7dd924b154a0a7bbf7c32a 100644 (file)
@@ -3,17 +3,27 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include "swallow-engraver.hh"
 
+#include "engraver.hh"
 
+/**
+  This engraver swallows everything given to it silently. The purpose of
+  this is to prevent spurious "event junked" warnings.
+ */
+class Swallow_engraver : public Engraver
+{
+public:
+  TRANSLATOR_DECLARATIONS(Swallow_engraver);
+protected:
+  bool try_music (Music*) ;
+};
 
-ADD_THIS_TRANSLATOR(Swallow_engraver);
 
 
 bool
-Swallow_engraver::do_try_music (Music*) 
+Swallow_engraver::try_music (Music*) 
 {
   return true;
 }