Skip to content

Commit abe3bdf

Browse files
committed
Remove RawVec::cap()
As suggested in #60340 (comment)
1 parent 0967d28 commit abe3bdf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/liballoc/raw_vec.rs

-6
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,6 @@ impl<T, A: Alloc> RawVec<T, A> {
209209
}
210210
}
211211

212-
// For backwards compatibility
213-
#[inline(always)]
214-
pub fn cap(&self) -> usize {
215-
self.capacity()
216-
}
217-
218212
/// Returns a shared reference to the allocator backing this RawVec.
219213
pub fn alloc(&self) -> &A {
220214
&self.a

0 commit comments

Comments
 (0)