From dcf5eaf7860c8a31e67946e64a5202ae8bc3f5f3 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Wed, 19 Jan 2011 23:08:13 +0100 Subject: [PATCH] Remove unused code. --- lily/include/page-spacing-result.hh | 1 - lily/optimal-page-breaking.cc | 4 +--- lily/page-spacing-result.cc | 10 ---------- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/lily/include/page-spacing-result.hh b/lily/include/page-spacing-result.hh index 216bdf8894..6d32bc6c2b 100644 --- a/lily/include/page-spacing-result.hh +++ b/lily/include/page-spacing-result.hh @@ -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 (); }; diff --git a/lily/optimal-page-breaking.cc b/lily/optimal-page-breaking.cc index 455aad3274..e404711b4b 100644 --- a/lily/optimal-page-breaking.cc +++ b/lily/optimal-page-breaking.cc @@ -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)) diff --git a/lily/page-spacing-result.cc b/lily/page-spacing-result.cc index 40f70bbe6e..827dbd4444 100644 --- a/lily/page-spacing-result.cc +++ b/lily/page-spacing-result.cc @@ -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 { -- 2.39.2