Skip to content

Commit

Permalink
virt: Remove unneeded ifs method in StoreProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Feb 17, 2023
1 parent b0d03a8 commit 1fa0d2a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/virt/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ use crate::{
pub trait StoreProvider {
type Store: Store;

unsafe fn ifs() -> &'static mut <Self::Store as Store>::I;

unsafe fn store() -> Self::Store;

unsafe fn reset(&self);
Expand Down Expand Up @@ -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 }
}
Expand Down Expand Up @@ -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 }
}
Expand Down

0 comments on commit 1fa0d2a

Please sign in to comment.