Skip to content

Commit

Permalink
remove absolute method
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Sep 24, 2024
1 parent 8ae8a18 commit 92834d8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/tick-tock-mock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,8 @@ impl MockHandle {
/// Reset the offset to 0
#[inline]
pub fn reset(&self) {
self.set_delta(0);
}

/// Set the delta to the absolute value
#[inline]
pub fn set_delta(&self, delta: i64) {
if let Some(delta_handle) = self.delta.upgrade() {
delta_handle.store(delta, Ordering::Release);
delta_handle.store(0, Ordering::Release);
}
}
}
Expand Down

0 comments on commit 92834d8

Please sign in to comment.