From abe3bdf257f50b583cd7dea91e33424f700fb0c2 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 25 Jun 2019 15:44:21 +0200 Subject: Remove RawVec::cap() As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032 --- src/liballoc/raw_vec.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index e5a8a522fbc..7c92ee51337 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 -- cgit 1.4.1-3-g733a5