Skip to content

Commit

Permalink
Comment out unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nledford committed Jun 17, 2024
1 parent b2cfdfd commit 46c747f
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions src/profiles/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i32> {
if self.track_limit == 0 {
Some(1111)
} else {
Some(self.track_limit)
}
}
// fn get_track_limit(&self) -> Option<i32> {
// 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)
Expand Down

0 comments on commit 46c747f

Please sign in to comment.