Remove BoxedSlice's next_key() function, which is unneeded.

`BoxedSlice` does not support appending elements, so it isn't useful to
look up the next key.
This commit is contained in:
Dan Gohman
2019-01-02 11:58:44 -08:00
parent b096d0606b
commit 8a11bd6af7

View File

@@ -83,11 +83,6 @@ where
IterMut::new(self.elems.iter_mut())
}
/// Get the key that will be assigned to the next pushed value.
pub fn next_key(&self) -> K {
K::new(self.elems.len())
}
/// Returns the last element that was inserted in the map.
pub fn last(&self) -> Option<&V> {
self.elems.last()