diff --git a/dim/src/core.rs b/dim/src/core.rs index fc915fe2e..ed9b7e6e6 100644 --- a/dim/src/core.rs +++ b/dim/src/core.rs @@ -21,25 +21,6 @@ pub type StateManager = nightfall::StateManager; pub type DbConnection = database::DbConnection; pub type EventTx = UnboundedSender; -/// Hacky type we use to implement clone on deref types. -#[derive(Clone, Debug)] -pub struct CloneOnDeref { - inner: T, -} - -impl CloneOnDeref { - pub fn new(inner: T) -> Self { - Self { inner } - } - - pub fn get(&self) -> T { - self.inner.clone() - } -} - -unsafe impl Send for CloneOnDeref {} -unsafe impl Sync for CloneOnDeref {} - /// Path to where metadata is stored and should be fetched to. pub static METADATA_PATH: OnceCell = OnceCell::new();