From 46c747f42709e8d752ca766b79a8b4667b2ee1fa Mon Sep 17 00:00:00 2001 From: Nathaniel Ledford Date: Mon, 17 Jun 2024 15:11:42 -0400 Subject: [PATCH] Comment out unused functions --- src/profiles/profile.rs | 48 +++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/src/profiles/profile.rs b/src/profiles/profile.rs index 7c5b3f6..25aa1eb 100644 --- a/src/profiles/profile.rs +++ b/src/profiles/profile.rs @@ -98,37 +98,33 @@ impl Profile { }) } - fn refresh_interval_str(&self) -> String { - format!( - "{} minutes ({} refreshes per hour)", - self.refresh_interval, - self.refreshes_per_hour() - ) - } - - fn refreshes_per_hour(&self) -> i32 { - 60 / self.refresh_interval as i32 - } - - fn time_limit_str(&self) -> String { - format!("{} hours", self.time_limit) - } + // fn refresh_interval_str(&self) -> String { + // format!( + // "{} minutes ({} refreshes per hour)", + // self.refresh_interval, + // self.refreshes_per_hour() + // ) + // } + + // fn refreshes_per_hour(&self) -> i32 { + // 60 / self.refresh_interval as i32 + // } + + // fn time_limit_str(&self) -> String { + // format!("{} hours", self.time_limit) + // } pub fn get_section_time_limit(&self) -> f64 { self.time_limit as f64 / self.sections.num_enabled() as f64 } - fn get_global_track_total(&self) -> usize { - self.sections.global_track_total() - } - - fn get_track_limit(&self) -> Option { - if self.track_limit == 0 { - Some(1111) - } else { - Some(self.track_limit) - } - } + // fn get_track_limit(&self) -> Option { + // if self.track_limit == 0 { + // Some(1111) + // } else { + // Some(self.track_limit) + // } + // } pub fn get_current_refresh_minute(&self) -> u32 { *build_refresh_minutes(self.refresh_interval)