Skip to content

Commit 6fe6a7f

Browse files
committed
remove dead code
1 parent de66c5c commit 6fe6a7f

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

crates/bevy_ecs/src/storage/blob_vec.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,21 +335,6 @@ impl BlobVec {
335335
unsafe { PtrMut::new(self.data) }
336336
}
337337

338-
/// Get a reference to the entire [`BlobVec`] as if it were an array with elements of type `T`
339-
///
340-
/// # Safety
341-
/// The type `T` must be the type of the items in this [`BlobVec`].
342-
pub unsafe fn get_slice<T>(&self) -> &[UnsafeCell<T>] {
343-
// SAFETY: the inner data will remain valid for as long as 'self.
344-
unsafe { core::slice::from_raw_parts(self.data.as_ptr() as *const UnsafeCell<T>, self.len) }
345-
}
346-
347-
/// Returns the drop function for values stored in the vector,
348-
/// or `None` if they don't need to be dropped.
349-
#[inline]
350-
pub fn get_drop(&self) -> Option<unsafe fn(OwningPtr<'_>)> {
351-
self.drop
352-
}
353338
/// Clears the vector, removing (and dropping) all values.
354339
///
355340
/// Note that this method has no effect on the allocated capacity of the vector.

crates/bevy_ecs/src/storage/table/column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,6 @@ impl ThinColumn {
409409
/// or `None` if they don't need to be dropped.
410410
#[inline]
411411
pub fn get_drop(&self) -> Option<unsafe fn(OwningPtr<'_>)> {
412-
self.data.get_drop()
412+
self.data.drop
413413
}
414414
}

0 commit comments

Comments
 (0)