Remove set_current_time API

This commit is contained in:
Andres O. Vela 2023-10-29 19:52:35 +01:00
parent 0d6094c8b1
commit f4a78e00a7

View File

@ -40,11 +40,6 @@ impl MockDriver {
&DRIVER &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`]. /// Advances the time by the specified [`Duration`].
pub fn advance(&self, duration: Duration) { pub fn advance(&self, duration: Duration) {
critical_section::with(|cs| { critical_section::with(|cs| {