Skip to content

Commit cf4127f

Browse files
author
blake2-ppc
committed
hashmap: Remove .mutate_values() which is replaced by .mut_iter()
1 parent e844b52 commit cf4127f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/libstd/hashmap.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -510,19 +510,6 @@ impl<K: Hash + Eq, V> HashMap<K, V> {
510510
self.iter().advance(|(_, v)| blk(v))
511511
}
512512

513-
/// Iterate over the map and mutate the contained values
514-
pub fn mutate_values(&mut self, blk: &fn(&K, &mut V) -> bool) -> bool {
515-
for uint::range(0, self.buckets.len()) |i| {
516-
match self.buckets[i] {
517-
Some(Bucket{key: ref key, value: ref mut value, _}) => {
518-
if !blk(key, value) { return false; }
519-
}
520-
None => ()
521-
}
522-
}
523-
return true;
524-
}
525-
526513
/// An iterator visiting all key-value pairs in arbitrary order.
527514
/// Iterator element type is (&'a K, &'a V).
528515
pub fn iter<'a>(&'a self) -> HashMapIterator<'a, K, V> {

0 commit comments

Comments
 (0)