Skip to content

Commit

Permalink
remove unused fns
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Mar 30, 2023
1 parent 4c41b17 commit 87f3e10
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bucket_map/src/bucket_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,6 @@ impl<O: BucketOccupied> BucketStorage<O> {
unsafe { std::slice::from_raw_parts_mut(ptr, len) }
}

pub(crate) fn get_from_parts<T: Sized>(item_slice: &[u8]) -> &T {
assert!(std::mem::size_of::<T>() <= item_slice.len());
let item = item_slice.as_ptr() as *const T;
unsafe { &*item }
}

pub(crate) fn get_mut_from_parts<T: Sized>(item_slice: &mut [u8]) -> &mut T {
assert!(std::mem::size_of::<T>() <= item_slice.len());
let item = item_slice.as_mut_ptr() as *mut T;
unsafe { &mut *item }
}

fn new_map(
drives: &[PathBuf],
cell_size: usize,
Expand Down

0 comments on commit 87f3e10

Please sign in to comment.