lilypond-1.4.2
[lilypond.git] / lily / swallow-engraver.cc
blob3823f2c1f5dab58547791ceebcf27612c3d18e20
1 /*
2 swallow-reg.cc -- implement Swallow_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "engraver.hh"
11 /**
12 This engraver swallows everything given to it silently. The purpose of
13 this is to prevent spurious "request junked" warnings.
15 class Swallow_engraver : public Engraver
17 public:
18 VIRTUAL_COPY_CONS (Translator);
19 protected:
20 bool try_music (Music*) ;
23 ADD_THIS_TRANSLATOR (Swallow_engraver);
25 bool
26 Swallow_engraver::try_music (Music*)
28 return true;