From: Han-Wen Nienhuys Date: Wed, 3 Jan 2007 20:39:14 +0000 (+0100) Subject: coverage fixes. X-Git-Tag: release/2.11.9-1~49 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=190f20aa82d91374e46f652c5272c216ebd02206;p=lilypond.git coverage fixes. --- diff --git a/lily/font-metric.cc b/lily/font-metric.cc index 03625cc946..a57d905b27 100644 --- a/lily/font-metric.cc +++ b/lily/font-metric.cc @@ -187,12 +187,9 @@ Font_metric::word_stencil (string str) const Stencil Font_metric::text_stencil (string str) const { - SCM lst = scm_list_3 (ly_symbol2scm ("text"), - this->self_scm (), - scm_makfrom0str (str.c_str ())); - - Box b = text_dimension (str); - return Stencil (b, lst); + (void) str; + assert (false); + return Stencil (Box (), SCM_EOL); } Box diff --git a/lily/grob-pitch-tuple.cc b/lily/grob-pitch-tuple.cc deleted file mode 100644 index eb72a367e1..0000000000 --- a/lily/grob-pitch-tuple.cc +++ /dev/null @@ -1,46 +0,0 @@ -/* - grob-pitch-tuple.cc -- implement Grob_pitch_tuple - - source file of the GNU LilyPond music typesetter - - (c) 2001--2006 Han-Wen Nienhuys -*/ - -#include "grob-pitch-tuple.hh" - -#include "music.hh" - -int compare (Grob_pitch_tuple const &a, Grob_pitch_tuple const &b) -{ - return Grob_pitch_tuple::time_compare (a, b); -} - -Grob_pitch_tuple::Grob_pitch_tuple () -{ - head_ = 0; - end_ = 0; -} - -Grob_pitch_tuple::Grob_pitch_tuple (Grob *h, Music *m, Moment mom) -{ - head_ = h; - pitch_ = *unsmob_pitch (m->get_property ("pitch")); - end_ = mom; -} - -/* - signed compare, should use pitchstr_.c_str ())); found = (program != SCM_BOOL_F); diff --git a/lily/tie-engraver.cc b/lily/tie-engraver.cc index 243b14b43f..591f03f84c 100644 --- a/lily/tie-engraver.cc +++ b/lily/tie-engraver.cc @@ -9,7 +9,6 @@ #include "engraver.hh" #include "context.hh" -#include "grob-pitch-tuple.hh" #include "international.hh" #include "item.hh" #include "note-head.hh"