Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 12, 2025
1 parent 319b298 commit 0f4693c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions crates/eframe/src/epi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
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<T: serde::de::DeserializeOwned>(storage: &dyn Storage, key: &str) -> Option<T> {
Expand Down

0 comments on commit 0f4693c

Please sign in to comment.