]> git.donarmstrong.com Git - lilypond.git/commitdiff
remove dead code
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Dec 2006 00:40:50 +0000 (01:40 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Dec 2006 00:42:45 +0000 (01:42 +0100)
lily/slur-scoring.cc

index 4e6167a650a88628543feffeb846bc778186a4f4..bbd257f932bc1254ba3b0e630dea3d727d3e073e 100644 (file)
@@ -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<Spanner *> (state.slur_->original ()))
-    {
-      Grob *neighbor = mother->broken_neighbor (hdir);
-      if (!neighbor)
-       return by;
-
-      
-      Spanner *common_mother
-       = dynamic_cast<Spanner *> (state.common_[Y_AXIS]->original ());
-      int common_k
-       = broken_spanner_index (dynamic_cast<Spanner *> (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.
 */