]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove unused code.
authorJoe Neeman <joeneeman@gmail.com>
Wed, 19 Jan 2011 22:08:13 +0000 (23:08 +0100)
committerJoe Neeman <joeneeman@gmail.com>
Mon, 24 Jan 2011 20:14:45 +0000 (12:14 -0800)
lily/include/page-spacing-result.hh
lily/optimal-page-breaking.cc
lily/page-spacing-result.cc

index 216bdf8894359cacebecb2ff73cb1daa655d12aa..6d32bc6c2bc2752f2ac6d9552f98956b4382e5da 100644 (file)
@@ -42,7 +42,6 @@ struct Page_spacing_result {
 
   Real average_force () const;
   vsize page_count () const;
-  vsize system_count () const;
   void print () const;  
   Page_spacing_result ();
 };
index 455aad3274ec4f644b629107114b56b60b2213d7..e404711b4b70066214846c83a5e34d2a6708c297 100644 (file)
@@ -53,9 +53,7 @@ Optimal_page_breaking::solve ()
   Line_division best_division = ideal_line_division;
   vsize min_sys_count = 1;
 
-  // Note that Page_breaking only counts non-title systems in
-  // system_count (whereas Page_spacing_result::system_count counts
-  // titles and non-titles).
+  // Note that system_count () only counts non-title systems.
   vsize ideal_sys_count = system_count ();
   
   if (!scm_is_integer (forced_page_count))
index 40f70bbe6e714876678df2e4cb4ad791c6e92044..827dbd44444fca9e450f58bd1820b53bda917499 100644 (file)
@@ -28,16 +28,6 @@ Page_spacing_result::Page_spacing_result ()
   system_count_status_ = SYSTEM_COUNT_OK;
 }
 
-vsize
-Page_spacing_result::system_count () const
-{
-  vsize total = 0;
-  for (vsize i = 0; i < systems_per_page_.size(); i++)
-    total += systems_per_page_[i];
-
-  return total;      
-}
-
 vsize
 Page_spacing_result::page_count () const
 {