From 752f53e6c616f12ff92a6628d8cf5c9149528887 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 28 Dec 2006 01:40:50 +0100 Subject: [PATCH] remove dead code --- lily/slur-scoring.cc | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/lily/slur-scoring.cc b/lily/slur-scoring.cc index 4e6167a650..bbd257f932 100644 --- a/lily/slur-scoring.cc +++ b/lily/slur-scoring.cc @@ -66,38 +66,6 @@ Slur_score_state::~Slur_score_state () junk_pointers (configurations_); } -Real -broken_trend_y (Slur_score_state const &state, Direction hdir) -{ - /* A broken slur should maintain the same vertical trend - the unbroken slur would have had. */ - Real by = 0.0; - if (Spanner *mother = dynamic_cast (state.slur_->original ())) - { - Grob *neighbor = mother->broken_neighbor (hdir); - if (!neighbor) - return by; - - - Spanner *common_mother - = dynamic_cast (state.common_[Y_AXIS]->original ()); - int common_k - = broken_spanner_index (dynamic_cast (state.common_[Y_AXIS])); - int common_j = common_k + hdir; - - if (common_j < 0 || vsize (common_j) >= common_mother->broken_intos_.size ()) - return by; - - Grob *common_next_system = common_mother->broken_intos_[common_j]; - - SCM last_point = scm_car (scm_last_pair (neighbor->get_property ("control-points"))); - - return scm_to_double (scm_cdr (last_point)) - + neighbor->relative_coordinate (common_next_system, Y_AXIS); - } - return by; -} - /* copy slur dir forwards across line break. */ -- 2.39.5