diff options
| author | blake2-ppc <blake2-ppc> | 2013-07-16 03:55:52 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-07-16 03:55:52 +0200 |
| commit | cf4127f503b58823a7cd287ddebeb6f0f3de5794 (patch) | |
| tree | 50ecd3cf6ae32a6b3afd759670d78ccb97e58f1f /src/libstd | |
| parent | e844b524ed1c099a6c19b7754fafcf67b99455df (diff) | |
| download | rust-cf4127f503b58823a7cd287ddebeb6f0f3de5794.tar.gz rust-cf4127f503b58823a7cd287ddebeb6f0f3de5794.zip | |
hashmap: Remove .mutate_values() which is replaced by .mut_iter()
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/hashmap.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libstd/hashmap.rs b/src/libstd/hashmap.rs index 3b3b71d7297..0131c3b540a 100644 --- a/src/libstd/hashmap.rs +++ b/src/libstd/hashmap.rs @@ -510,19 +510,6 @@ impl<K: Hash + Eq, V> HashMap<K, V> { self.iter().advance(|(_, v)| blk(v)) } - /// Iterate over the map and mutate the contained values - pub fn mutate_values(&mut self, blk: &fn(&K, &mut V) -> bool) -> bool { - for uint::range(0, self.buckets.len()) |i| { - match self.buckets[i] { - Some(Bucket{key: ref key, value: ref mut value, _}) => { - if !blk(key, value) { return false; } - } - None => () - } - } - return true; - } - /// An iterator visiting all key-value pairs in arbitrary order. /// Iterator element type is (&'a K, &'a V). pub fn iter<'a>(&'a self) -> HashMapIterator<'a, K, V> { |
