lib: remove some explicit Object bounds
[nit.git] / lib / standard / hash.nit
index 21331e5..6f3ef42 100644 (file)
@@ -61,7 +61,7 @@ redef class Bool
 end
 
 # A HashCollection is an array of HashNode[K] indexed by the K hash value
-private class HashCollection[K: Object, N: HashNode[K], E: Object]
+private class HashCollection[K: Object, N: HashNode[K], E]
 special Collection[E]
 special ArrayCapable[N]
        attr _array: NativeArray[N] = null # Used to store items
@@ -319,7 +319,7 @@ special HashNode[K]
        redef meth key do return first
        redef type N: HashMapNode[K, V]
 
-       redef init(k: K, v: V)
+       init(k: K, v: V)
        do
                first = k
                second = v 
@@ -336,11 +336,11 @@ special MapIterator[K, V]
                return _node.second
        end
 
-       redef meth item=(value)
-       do
-               assert is_ok
-               _node.second = value
-       end
+       #redef meth item=(value)
+       #do
+       #       assert is_ok
+       #       _node.second = value
+       #end
 
        redef meth key
        do