From 8a11bd6af79dc921fe55b353bc85e1f097cb99b4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 2 Jan 2019 11:58:44 -0800 Subject: [PATCH] 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. --- lib/entity/src/boxed_slice.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/entity/src/boxed_slice.rs b/lib/entity/src/boxed_slice.rs index c97522467c..e619238387 100644 --- a/lib/entity/src/boxed_slice.rs +++ b/lib/entity/src/boxed_slice.rs @@ -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()