From aa96debcaa34b6a63c4c8f4cb3db82fc6d10d3a4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 20 May 2020 18:20:39 +0900 Subject: [PATCH] Remove deprecated methods --- crossbeam-utils/src/atomic/atomic_cell.rs | 18 ------------------ crossbeam-utils/src/backoff.rs | 7 ------- 2 files changed, 25 deletions(-) diff --git a/crossbeam-utils/src/atomic/atomic_cell.rs b/crossbeam-utils/src/atomic/atomic_cell.rs index 4cc9f8091..c687af310 100644 --- a/crossbeam-utils/src/atomic/atomic_cell.rs +++ b/crossbeam-utils/src/atomic/atomic_cell.rs @@ -162,24 +162,6 @@ impl AtomicCell { pub fn as_ptr(&self) -> *mut T { self.value.get() } - - /// Returns a mutable reference to the inner value. - /// - /// # Examples - /// - /// ``` - /// use crossbeam_utils::atomic::AtomicCell; - /// - /// let mut a = AtomicCell::new(7); - /// *a.get_mut() += 1; - /// - /// assert_eq!(a.load(), 8); - /// ``` - #[doc(hidden)] - #[deprecated(note = "this method is unsound and will be removed in the next release")] - pub fn get_mut(&mut self) -> &mut T { - unsafe { &mut *self.value.get() } - } } impl AtomicCell { diff --git a/crossbeam-utils/src/backoff.rs b/crossbeam-utils/src/backoff.rs index 446755bbc..c82c4b31f 100644 --- a/crossbeam-utils/src/backoff.rs +++ b/crossbeam-utils/src/backoff.rs @@ -267,13 +267,6 @@ impl Backoff { pub fn is_completed(&self) -> bool { self.step.get() > YIELD_LIMIT } - - #[inline] - #[doc(hidden)] - #[deprecated(note = "use `is_completed` instead")] - pub fn is_complete(&self) -> bool { - self.is_completed() - } } impl fmt::Debug for Backoff {