More work on spacing to match lily master
[lilypond/csorensen.git] / lily / swallow-engraver.cc
blob37a2148dbf140b55944820e2a31714ce02b4b679
1 /*
2 swallow-engraver.cc -- implement Swallow_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "engraver.hh"
11 class Swallow_engraver : public Engraver
13 public:
14 TRANSLATOR_DECLARATIONS (Swallow_engraver);
15 protected:
16 bool try_music (Music *);
19 bool
20 Swallow_engraver::try_music (Music *)
22 return true;
25 Swallow_engraver::Swallow_engraver ()
29 #include "translator.icc"
31 ADD_TRANSLATOR (Swallow_engraver,
32 /* doc */
33 "This engraver swallows everything given to it silently."
34 " The purpose of this is to prevent spurious @q{event junked}"
35 " warnings.",
37 /* create */
38 "",
40 /* read */
41 "",
43 /* write */