From 7bd3dfabebae359f39dbb7321aacda8ac6a36fe8 Mon Sep 17 00:00:00 2001 From: ju6ge Date: Sun, 10 May 2026 13:56:15 +0200 Subject: [PATCH] refactor: remove dead mk_static macro from esp module --- rust/src/hal/esp.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rust/src/hal/esp.rs b/rust/src/hal/esp.rs index 177901e..2306b1e 100644 --- a/rust/src/hal/esp.rs +++ b/rust/src/hal/esp.rs @@ -120,15 +120,6 @@ pub struct Esp<'a> { // CPU cores/threads, reconsider this. unsafe impl Send for Esp<'_> {} -macro_rules! mk_static { - ($t:ty,$val:expr) => {{ - static STATIC_CELL: static_cell::StaticCell<$t> = static_cell::StaticCell::new(); - #[deny(unused_attributes)] - let x = STATIC_CELL.uninit().write(($val)); - x - }}; -} - impl Esp<'_> { pub fn get_time(&self) -> DateTime { DateTime::from_timestamp_micros(self.rtc.current_time_us() as i64)