]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
patch::: 1.5.22.jcn4
[lilypond.git] / lily / swallow-engraver.cc
index 2a6a8c9e3107482f10a9de3d088e3bea797c838b..5a3dcfdfbe3aaf8d6d870feaf51b7371b0d1ad29 100644 (file)
@@ -3,17 +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:
+  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;
 }