]> git.donarmstrong.com Git - lilypond.git/commitdiff
cleanup
authorBenkő Pál <benko.pal@gmail.com>
Thu, 6 Jun 2013 20:46:41 +0000 (22:46 +0200)
committerBenkő Pál <benko.pal@gmail.com>
Wed, 12 Jun 2013 18:22:59 +0000 (20:22 +0200)
- remove unused variable appearance
- fix a copy'n'paste typo in comment
- space before function call

lily/completion-rest-engraver.cc

index 2d7dcfb8e5d2eb8c6c249e42ac147df1bcbc05a3..6bd52d6e9a4e259406906d664de05ebad2d1453a 100644 (file)
@@ -119,7 +119,7 @@ Completion_rest_engraver::next_moment (Rational const &note_len)
   if (unit)
     {
       Rational const now_unit = e->main_part_ / unit->main_part_;
-      if (now_unit.den() > 1)
+      if (now_unit.den () > 1)
         {
           /*
             within a unit - go to the end of that
@@ -178,19 +178,17 @@ Completion_rest_engraver::process_music ()
     return;
 
   Duration rest_dur;
-  Duration appearance;
   Duration *orig = 0;
   if (left_to_do_)
     {
       /*
-        rest that rest_dur may be strictly less than left_to_do_
+        note that rest_dur may be strictly less than left_to_do_
         (say, if left_to_do_ == 5/8)
       */
       if (factor_.denominator () == 1 && factor_ > Rational (1, 1))
         rest_dur = Duration (left_to_do_, false);
       else
         rest_dur = Duration (left_to_do_ / factor_, false).compressed (factor_);
-      appearance = Duration (left_to_do_, false);
     }
   else
     {