about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/raw_vec.rs6
1 files changed, 0 insertions, 6 deletions
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<T, A: Alloc> RawVec<T, A> {
         }
     }
 
-    // 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