X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fwarn.cc;h=36231783801d492490c1755e13438e6a00e9ada5;hb=refs%2Ftags%2Frelease%2F1.3.8;hp=33261d8f5ac7d2e5388c4f9591f97e1b955f6a7c;hpb=69b9cead5afe7164b9053d26eba582fec3825ef8;p=lilypond.git diff --git a/lily/warn.cc b/lily/warn.cc index 33261d8f5a..3623178380 100644 --- a/lily/warn.cc +++ b/lily/warn.cc @@ -3,15 +3,14 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1999 Han-Wen Nienhuys */ #include "proto.hh" -#include "plist.hh" #include "debug.hh" #include "my-lily-lexer.hh" #include "moment.hh" -#include "time-description.hh" +#include "timing-translator.hh" #include "source-file.hh" #include "source.hh" #include "main.hh" @@ -21,18 +20,3 @@ ostream &warnout (cerr); ostream *mlog (&cerr); - -void -error_t (String const & s, Moment const & r) -{ - String t_mom = r.truncated ().str () + (r - r.truncated ()).str (); - String e=s+ " (t = " + t_mom + ")"; - error (e); -} - -void -error_t (String const & s, Time_description const &t_tdes) -{ - String e=s+ " (at t=" + String(t_tdes.bars_i_) + ": " + (t_tdes.whole_in_measure_).str () + ")\n"; - error (e); -}