Skip to content

Commit

Permalink
Removed deprecated change_hz()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavJCosby committed Nov 25, 2024
1 parent 8606faa commit 70cd6a4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/scheduler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ where
}
}

/// Allows you to change the frequency at which the scheduler tries to run tasks.
///
/// Note: Deprecated in favor of [CustomScheduler::set_hz()]
#[deprecated]
pub fn change_hz(&mut self, new_target_hz: f32) {
self.target_delta = Duration::from_secs_f32(new_target_hz.recip())
}

/// Allows you to change the frequency at which the scheduler tries to run tasks.
pub fn set_hz(&mut self, new_target_hz: f32) {
self.target_delta = Duration::from_secs_f32(new_target_hz.recip())
Expand Down Expand Up @@ -215,14 +207,6 @@ where
}
}

/// Allows you to change the frequency at which the scheduler tries to run tasks.
///
/// Note: Deprecated in favor of [AsyncCustomScheduler::set_hz()]
#[deprecated]
pub fn change_hz(&mut self, new_target_hz: f32) {
self.target_delta = Duration::from_secs_f32(new_target_hz.recip())
}

/// Allows you to change the frequency at which the scheduler tries to run tasks.
pub fn set_hz(&mut self, new_target_hz: f32) {
self.target_delta = Duration::from_secs_f32(new_target_hz.recip())
Expand Down

0 comments on commit 70cd6a4

Please sign in to comment.