From 073459490a265605722ef9aee4a549b3aa5ebd07 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 27 Mar 2002 00:55:02 +0000 Subject: [PATCH] lilypond-1.3.125 --- lily/auto-change-music.cc | 18 ------------- lily/cross-staff.cc | 51 ------------------------------------- lily/include/cross-staff.hh | 17 ------------- 3 files changed, 86 deletions(-) delete mode 100644 lily/auto-change-music.cc delete mode 100644 lily/cross-staff.cc delete mode 100644 lily/include/cross-staff.hh diff --git a/lily/auto-change-music.cc b/lily/auto-change-music.cc deleted file mode 100644 index 5af0524d96..0000000000 --- a/lily/auto-change-music.cc +++ /dev/null @@ -1,18 +0,0 @@ -/* - auto-switch-music.cc -- implement Auto_change_music - - source file of the GNU LilyPond music typesetter - - (c) 1999--2000 Han-Wen Nienhuys - - */ - -#include "auto-change-music.hh" -#include "auto-change-iterator.hh" - -Auto_change_music::Auto_change_music (SCM m) - : Music_wrapper (m) -{ - set_mus_property ("iterator-ctor", Auto_change_iterator::constructor_cxx_function); - -} diff --git a/lily/cross-staff.cc b/lily/cross-staff.cc deleted file mode 100644 index 4bb5e0de00..0000000000 --- a/lily/cross-staff.cc +++ /dev/null @@ -1,51 +0,0 @@ -#include "cross-staff.hh" -#include "item.hh" -#include "align-interface.hh" -#include "spanner.hh" -#include "warn.hh" -#include "paper-def.hh" - - -/* - JUNKME - */ -Real -calc_interstaff_dist (Item *item, Spanner *span) -{ - Real interstaff = 0.0; - Grob *common = item->common_refpoint (span, Y_AXIS); - - - if (Align_interface::has_interface (common) && Align_interface::axis(common) == Y_AXIS) - { - SCM threshold = common->get_grob_property ("forced-distance"); - interstaff = 1.0; - if (!gh_number_p (threshold)) - warning (_ ("not a forced distance; cross-staff spanners may be broken")); - else - interstaff *= gh_scm2double (threshold); - - Grob * span_refpoint = span; - while (span_refpoint->parent_l (Y_AXIS) != common) - span_refpoint = span_refpoint->parent_l (Y_AXIS); - - Grob * note_refpoint = item; - while (note_refpoint->parent_l (Y_AXIS) != common) - note_refpoint = note_refpoint->parent_l (Y_AXIS); - - int span_prio = - Align_interface::get_count (common,(Grob*) dynamic_cast (span_refpoint)); - int item_prio = - Align_interface::get_count (common,(Grob*) dynamic_cast (note_refpoint)); - - /* - our staff is lower -> interstaff *= -1 - */ - - if (span_prio < item_prio) - interstaff *= -1; - return interstaff; - } - else return 0.0; -} - diff --git a/lily/include/cross-staff.hh b/lily/include/cross-staff.hh deleted file mode 100644 index c5186008c2..0000000000 --- a/lily/include/cross-staff.hh +++ /dev/null @@ -1,17 +0,0 @@ -/* - cross-staff.hh -- declare cross staff calc funcs. - - source file of the GNU LilyPond music typesetter - - (c) 1999--2000 Han-Wen Nienhuys - - */ - -#ifndef CROSS_STAFF_HH -#define CROSS_STAFF_HH -#include "lily-proto.hh" -Real -calc_interstaff_dist (Item *item, Spanner *span); - -#endif /* CROSS_STAFF_HH */ - -- 2.39.5