X-Git-Url: http://nitlanguage.org diff --git a/lib/standard/collection/hash_collection.nit b/lib/standard/collection/hash_collection.nit index 13c9f09..9a53f99 100644 --- a/lib/standard/collection/hash_collection.nit +++ b/lib/standard/collection/hash_collection.nit @@ -14,7 +14,6 @@ module hash_collection import array -import hash # A HashCollection is an array of HashNode[K] indexed by the K hash value private abstract class HashCollection[K: Object, N: HashNode[Object]] @@ -217,16 +216,6 @@ class HashMap[K: Object, V] redef fun iterator: HashMapIterator[K, V] do return new HashMapIterator[K,V](self) - redef fun iterate - !each(k: K, v: V) - do - var c = _first_item - while c != null do - each(c._key, c._value) - c = c._next_item - end - end - redef fun length do return _length redef fun is_empty do return _length == 0