]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
patch::: 1.3.132.jcn2
[lilypond.git] / lily / swallow-engraver.cc
index 26719c84777f00665091e38dfaa16b43f4a3499d..3823f2c1f5dab58547791ceebcf27612c3d18e20 100644 (file)
@@ -5,12 +5,22 @@
 
   (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);
-
+ADD_THIS_TRANSLATOR (Swallow_engraver);
 
 bool
 Swallow_engraver::try_music (Music*)