diff --git a/crates/storage/src/structured_storage.rs b/crates/storage/src/structured_storage.rs index b153d357f5c..507cd1f26d0 100644 --- a/crates/storage/src/structured_storage.rs +++ b/crates/storage/src/structured_storage.rs @@ -406,17 +406,13 @@ pub mod test { use crate as fuel_core_storage; use crate::kv_store::{ KeyValueInspect, - KeyValueMutate, StorageColumn, }; use fuel_core_storage::{ kv_store::Value, Result as StorageResult, }; - use std::{ - collections::HashMap, - sync::Arc, - }; + use std::collections::HashMap; type Storage = HashMap<(u32, Vec), Value>; @@ -454,27 +450,4 @@ pub mod test { Ok(value) } } - - impl KeyValueMutate for InMemoryStorage - where - InMemoryStorage: KeyValueInspect, - { - #[doc = " Writes the `buf` into the storage and returns the number of written bytes."] - fn write( - &mut self, - key: &[u8], - column: Self::Column, - buf: &[u8], - ) -> StorageResult { - self.storage - .insert((column.id(), key.to_vec()), Arc::new(buf.to_vec())); - Ok(buf.len()) - } - - #[doc = " Removes the value from the storage."] - fn delete(&mut self, key: &[u8], column: Self::Column) -> StorageResult<()> { - self.storage.remove(&(column.id(), key.to_vec())); - Ok(()) - } - } }