compact: remove leftover

This commit is contained in:
Astro 2020-12-11 00:43:27 +01:00
parent 449f7f5924
commit 1a35d195e6
1 changed files with 0 additions and 7 deletions

View File

@ -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()?;