]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
release: 1.3.144
[lilypond.git] / lily / swallow-engraver.cc
index 053a8f9560aea4722ac5953f4aebaf797062723b..3823f2c1f5dab58547791ceebcf27612c3d18e20 100644 (file)
@@ -3,15 +3,27 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2001 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 "request junked" warnings.
+ */
+class Swallow_engraver : public Engraver
+{
+public:
+  VIRTUAL_COPY_CONS (Translator);
+protected:
+  bool try_music (Music*) ;
+};
 
 ADD_THIS_TRANSLATOR (Swallow_engraver);
 
 bool
-Swallow_engraver::do_try_music (Music*) 
+Swallow_engraver::try_music (Music*) 
 {
   return true;
 }