]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.58
authorfred <fred>
Tue, 26 Mar 2002 22:15:02 +0000 (22:15 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:15:02 +0000 (22:15 +0000)
lily/encompass-info.cc

index 8dd95437d4d7cf1a78176fddd419517ff67b4d14..b5fbcf56fee0af6136a908a75310ca618b182a7c 100644 (file)
@@ -20,7 +20,6 @@
 
 Encompass_info::Encompass_info ()
 {
-  assert (0);
 }
 
 Encompass_info::Encompass_info (Note_column const* note_column, Direction dir, Slur const* slur_l)
@@ -37,37 +36,12 @@ Encompass_info::Encompass_info (Note_column const* note_column, Direction dir, S
   
   o_[X_AXIS] = stem_l->hpos_f ();
 
-#if 0
-  /* 
-    Let's not do this; yields ugly assymetric slurs.
-
-    set o_[X_AXIS] to middle of notehead or on the exact position of stem,
-    according to slur direction
-
-    
-     stem_l->dir == dir
-                      ________
-           |   |     /        \
-          x|  x|       |x  |x
-        \________/     |   |
-
-   */
-
-  dx_f_drul_[d] = -d * spanned_drul_[d]->extent (X_AXIS).length ();
-
-  if (stem_l->dir_ != dir)
-    o_[X_AXIS] -= 0.5 * stem_l->dir_ * note_column->extent (X_AXIS).length ();
-
-#else
-
   /*
-    Instead; simply set x to middle of notehead
+    Simply set x to middle of notehead
    */
 
   o_[X_AXIS] -= 0.5 * stem_l->dir_ * note_column->extent (X_AXIS).length ();
 
-#endif
-
   if (stem_l->dir_ == dir)
     {
       o_[Y_AXIS] = stem_l->extent (Y_AXIS)[dir];