diff options
| -rw-r--r-- | embassy-time/src/driver_mock.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/embassy-time/src/driver_mock.rs b/embassy-time/src/driver_mock.rs index 4ae5a2d96..c7cab342f 100644 --- a/embassy-time/src/driver_mock.rs +++ b/embassy-time/src/driver_mock.rs | |||
| @@ -40,11 +40,6 @@ impl MockDriver { | |||
| 40 | &DRIVER | 40 | &DRIVER |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | /// Sets the current time of the mock driver. | ||
| 44 | pub fn set_current_time(&self, now: Instant) { | ||
| 45 | critical_section::with(|cs| self.now.borrow(cs).set(now)) | ||
| 46 | } | ||
| 47 | |||
| 48 | /// Advances the time by the specified [`Duration`]. | 43 | /// Advances the time by the specified [`Duration`]. |
| 49 | pub fn advance(&self, duration: Duration) { | 44 | pub fn advance(&self, duration: Duration) { |
| 50 | critical_section::with(|cs| { | 45 | critical_section::with(|cs| { |
