Skip to content

Commit

Permalink
Remove RawVec::cap()
Browse files Browse the repository at this point in the history
As suggested in #60340 (comment)
  • Loading branch information
mgeier committed Jun 25, 2019
1 parent 0967d28 commit abe3bdf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/liballoc/raw_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abe3bdf

Please sign in to comment.