Skip to content

Commit 98fae22

Browse files
committed
remove is_empty_atomic_acquire as_slice_atomic_acquire
These public but undocumented and unused, i added them in hindsight but probably they are not required. Otherwise they could be re-added later.
1 parent 9d839ff commit 98fae22

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,6 @@ impl<H, T> HeaderVec<H, T> {
533533
self.header().len.fetch_add(n, Ordering::Release)
534534
}
535535

536-
#[inline(always)]
537-
pub fn is_empty_atomic_acquire(&self) -> bool {
538-
self.len_atomic_acquire() == 0
539-
}
540-
541-
#[inline(always)]
542-
pub fn as_slice_atomic_acquire(&self) -> &[T] {
543-
unsafe { core::slice::from_raw_parts(self.start_ptr(), self.len_atomic_acquire()) }
544-
}
545-
546536
/// Gets the pointer to the end of the slice. This returns a mutable pointer to
547537
/// uninitialized memory behind the last element.
548538
#[inline(always)]

0 commit comments

Comments
 (0)