Remove steal_storage
This commit is contained in:
@@ -238,6 +238,11 @@ impl<S: Storage> Store<S> {
|
||||
Ok(store)
|
||||
}
|
||||
|
||||
/// Extracts the storage.
|
||||
pub fn extract_storage(self) -> S {
|
||||
self.storage
|
||||
}
|
||||
|
||||
/// Iterates over the entries.
|
||||
pub fn iter<'a>(&'a self) -> StoreResult<StoreIter<'a>> {
|
||||
let head = or_invalid(self.head)?;
|
||||
@@ -1162,11 +1167,6 @@ impl Store<BufferStorage> {
|
||||
&mut self.storage
|
||||
}
|
||||
|
||||
/// Extracts the storage.
|
||||
pub fn extract_storage(self) -> BufferStorage {
|
||||
self.storage
|
||||
}
|
||||
|
||||
/// Returns the value of a possibly deleted entry.
|
||||
///
|
||||
/// If the value has been partially compacted, only return the non-compacted part. Returns an
|
||||
|
||||
Reference in New Issue
Block a user