diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2019-06-25 15:44:21 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2019-06-25 15:44:21 +0200 |
| commit | abe3bdf257f50b583cd7dea91e33424f700fb0c2 (patch) | |
| tree | c023158dc72ca5e416c057d2627f8255133ea1b0 /src/liballoc | |
| parent | 0967d28be787b281c0364aca8fb9c25124029b30 (diff) | |
| download | rust-abe3bdf257f50b583cd7dea91e33424f700fb0c2.tar.gz rust-abe3bdf257f50b583cd7dea91e33424f700fb0c2.zip | |
Remove RawVec::cap()
As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/raw_vec.rs | 6 |
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 |
