diff --git a/bucket_map/src/bucket_storage.rs b/bucket_map/src/bucket_storage.rs index 3b2a6a61938528..317038dc888fa2 100644 --- a/bucket_map/src/bucket_storage.rs +++ b/bucket_map/src/bucket_storage.rs @@ -218,18 +218,6 @@ impl BucketStorage { unsafe { std::slice::from_raw_parts_mut(ptr, len) } } - pub(crate) fn get_from_parts(item_slice: &[u8]) -> &T { - assert!(std::mem::size_of::() <= item_slice.len()); - let item = item_slice.as_ptr() as *const T; - unsafe { &*item } - } - - pub(crate) fn get_mut_from_parts(item_slice: &mut [u8]) -> &mut T { - assert!(std::mem::size_of::() <= item_slice.len()); - let item = item_slice.as_mut_ptr() as *mut T; - unsafe { &mut *item } - } - fn new_map( drives: &[PathBuf], cell_size: usize,