]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_data_structures/src/vec_map.rs
Rollup merge of #94267 - pierwill:fast-reject-bound, r=michaelwoerister
[rust.git] / compiler / rustc_data_structures / src / vec_map.rs
index 8f525230e7eec3cbae321c697a3d46defa519aa8..cc7ec9432faed31803376bbc5113cebd642229ca 100644 (file)
@@ -30,11 +30,6 @@ pub fn insert(&mut self, k: K, v: V) -> Option<V> {
         }
     }
 
-    /// Removes the entry from the map and returns the removed value
-    pub fn remove(&mut self, k: &K) -> Option<V> {
-        self.0.iter().position(|(k2, _)| k2 == k).map(|pos| self.0.remove(pos).1)
-    }
-
     /// Gets a reference to the value in the entry.
     pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V>
     where