diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index e5a8a522fbc18..7c92ee5133792 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -209,12 +209,6 @@ impl RawVec { } } - // For backwards compatibility - #[inline(always)] - pub fn cap(&self) -> usize { - self.capacity() - } - /// Returns a shared reference to the allocator backing this RawVec. pub fn alloc(&self) -> &A { &self.a