chore: remove delete method from Database trait

This commit is contained in:
Magamedrasul Ibragimov 2022-11-01 20:33:44 +03:00
parent 4591a9001c
commit 6b18234c66
2 changed files with 0 additions and 7 deletions

View File

@ -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);
}

View File

@ -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 {