From 1fa0d2a4354ecda1acf590286f9569fba9faca80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 13 Feb 2023 11:31:07 +0100 Subject: [PATCH] virt: Remove unneeded `ifs` method in StoreProvider --- src/virt/store.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/virt/store.rs b/src/virt/store.rs index 2e1589cf598..54fe4a7e664 100644 --- a/src/virt/store.rs +++ b/src/virt/store.rs @@ -17,8 +17,6 @@ use crate::{ pub trait StoreProvider { type Store: Store; - unsafe fn ifs() -> &'static mut ::I; - unsafe fn store() -> Self::Store; unsafe fn reset(&self); @@ -138,12 +136,6 @@ impl Filesystem { impl StoreProvider for Filesystem { type Store = FilesystemStore; - unsafe fn ifs() -> &'static mut FilesystemStorage { - INTERNAL_FILESYSTEM_STORAGE - .as_mut() - .expect("ifs not initialized") - } - unsafe fn store() -> Self::Store { Self::Store { __: PhantomData } } @@ -181,10 +173,6 @@ pub struct Ram {} impl StoreProvider for Ram { type Store = RamStore; - unsafe fn ifs() -> &'static mut InternalStorage { - INTERNAL_RAM_STORAGE.as_mut().expect("ifs not initialized") - } - unsafe fn store() -> Self::Store { Self::Store { __: PhantomData } }