From 0f4693cb35f90980ddebf6335fdc11a79b1a7e4b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 12 Jan 2025 21:28:43 +0100 Subject: [PATCH] Remove dead code --- crates/eframe/src/epi.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/crates/eframe/src/epi.rs b/crates/eframe/src/epi.rs index 7a7e9224444..fb589fe2ec1 100644 --- a/crates/eframe/src/epi.rs +++ b/crates/eframe/src/epi.rs @@ -878,20 +878,6 @@ pub trait Storage { fn flush(&mut self); } -/// Stores nothing. -#[derive(Clone, Default)] -pub(crate) struct DummyStorage {} - -impl Storage for DummyStorage { - fn get_string(&self, _key: &str) -> Option { - None - } - - fn set_string(&mut self, _key: &str, _value: String) {} - - fn flush(&mut self) {} -} - /// Get and deserialize the [RON](https://github.com/ron-rs/ron) stored at the given key. #[cfg(feature = "ron")] pub fn get_value(storage: &dyn Storage, key: &str) -> Option {