X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=lily%2Ftime-signature.cc;h=f00c2563f6fe4f71922577e5f0d4963ad41c2547;hb=5bda83c627e32877f868473e09a28d0bc3c9a2f3;hp=263817c7082fc82b724b9b765965a312487d85ea;hpb=9cba6d0b05bd28e2fc73f091b09ace570c976182;p=lilypond.git diff --git a/lily/time-signature.cc b/lily/time-signature.cc index 263817c708..f00c2563f6 100644 --- a/lily/time-signature.cc +++ b/lily/time-signature.cc @@ -23,10 +23,7 @@ #include "font-interface.hh" #include "international.hh" #include "output-def.hh" -#include "staff-symbol.hh" -#include "staff-symbol-referencer.hh" #include "text-interface.hh" -#include "warn.hh" /* TODO: @@ -58,36 +55,6 @@ Time_signature::print (SCM smob) else m = numbered_time_signature (me, n, d); - /* - position the signature centred on the staff line - nearest to the middle of the staff - */ - if (Grob *staff = Staff_symbol_referencer::get_staff_symbol (me)) - { - std::vector const linepos = Staff_symbol::line_positions (staff); - if (!linepos.empty ()) - { - Interval const span = Staff_symbol::line_span (staff); - Real const mid = span.center (); - Real pos = linepos.front (); - Real dist = fabs (pos - mid); - for (std::vector::const_iterator - i = linepos.begin (), e = linepos.end (); - ++i != e;) - { - double const d = fabs (*i - mid); - if (d < dist) - { - pos = *i; - dist = d; - } - } - - m.translate_axis - (pos * Staff_symbol_referencer::staff_space (me) / 2, Y_AXIS); - } - } - return m.smobbed_copy (); }