diff options
| author | Andres O. Vela <[email protected]> | 2023-10-29 19:52:35 +0100 |
|---|---|---|
| committer | Andres O. Vela <[email protected]> | 2023-10-29 19:52:35 +0100 |
| commit | f4a78e00a7a6a1e5046c8e6af2cc5c08df9d7bc1 (patch) | |
| tree | dd26cc15a30155e651a9baeb05c633a60fbbb543 /embassy-time/src | |
| parent | 0d6094c8b10da141d048ec23133df4525befbd44 (diff) | |
Remove set_current_time API
Diffstat (limited to 'embassy-time/src')
| -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| { |
