From f4a78e00a7a6a1e5046c8e6af2cc5c08df9d7bc1 Mon Sep 17 00:00:00 2001 From: "Andres O. Vela" Date: Sun, 29 Oct 2023 19:52:35 +0100 Subject: [PATCH] Remove set_current_time API --- embassy-time/src/driver_mock.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/embassy-time/src/driver_mock.rs b/embassy-time/src/driver_mock.rs index 4ae5a2d9..c7cab342 100644 --- a/embassy-time/src/driver_mock.rs +++ b/embassy-time/src/driver_mock.rs @@ -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| {