mirror of
https://github.com/vacp2p/pmtree.git
synced 2025-02-19 18:48:13 +00:00
chore: remove delete method from Database trait
This commit is contained in:
parent
4591a9001c
commit
6b18234c66
@ -13,7 +13,4 @@ pub trait Database {
|
||||
|
||||
/// Puts the value to the db by the key
|
||||
fn put(&mut self, key: DBKey, value: Value);
|
||||
|
||||
/// Deletes the key from db
|
||||
fn delete(&mut self, key: DBKey);
|
||||
}
|
||||
|
@ -25,10 +25,6 @@ impl Database for MemoryDB {
|
||||
fn put(&mut self, key: DBKey, value: Value) {
|
||||
self.0.insert(key, value);
|
||||
}
|
||||
|
||||
fn delete(&mut self, key: DBKey) {
|
||||
self.0.remove(&key);
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Vec<u8>> for MyFr {
|
||||
|
Loading…
x
Reference in New Issue
Block a user