Remove set_current_time API
This commit is contained in:
parent
0d6094c8b1
commit
f4a78e00a7
@ -40,11 +40,6 @@ impl MockDriver {
|
||||
&DRIVER
|
||||
}
|
||||
|
||||
/// Sets the current time of the mock driver.
|
||||
pub fn set_current_time(&self, now: Instant) {
|
||||
critical_section::with(|cs| self.now.borrow(cs).set(now))
|
||||
}
|
||||
|
||||
/// Advances the time by the specified [`Duration`].
|
||||
pub fn advance(&self, duration: Duration) {
|
||||
critical_section::with(|cs| {
|
||||
|
Loading…
Reference in New Issue
Block a user