compact: remove leftover
This commit is contained in:
parent
449f7f5924
commit
1a35d195e6
@ -91,13 +91,6 @@ impl<B: StoreBackend> Store<B> {
|
||||
}
|
||||
|
||||
fn compact(&mut self) -> Result<(), Error<B::Error>> {
|
||||
// static mut OLD_DATA: B::Data;
|
||||
// let mut old_data = MaybeUninit::<B::Data>::zeroed();
|
||||
// let old_data = unsafe {
|
||||
// let mut old_data = old_data.assume_init();
|
||||
// old_data.copy_from_slice(self.backend.data().as_ref());
|
||||
// old_data
|
||||
// };
|
||||
let old_data = self.backend.data().clone();
|
||||
|
||||
self.erase()?;
|
||||
|
Loading…
Reference in New Issue
Block a user