summaryrefslogtreecommitdiff
path: root/gee/hashmap.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-08-14 21:22:53 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-08-14 21:22:53 +0000
commit8621de12c043a7a7d959dbca9b70a5fa02c34781 (patch)
tree2f656d4d065c78104a0af9e4d93ece1b8ccb7463 /gee/hashmap.vala
parent2166f7c312de0cd0e0f474cfff44c3293fea3098 (diff)
downloadvala-8621de12c043a7a7d959dbca9b70a5fa02c34781.tar.gz
Don't derive from GObject in libvala where not necessary to improve
2008-08-14 Jürg Billeter <j@bitron.ch> Don't derive from GObject in libvala where not necessary to improve compilation performance svn path=/trunk/; revision=1757
Diffstat (limited to 'gee/hashmap.vala')
-rw-r--r--gee/hashmap.vala13
1 files changed, 5 insertions, 8 deletions
diff --git a/gee/hashmap.vala b/gee/hashmap.vala
index 3802468b6..7c4765263 100644
--- a/gee/hashmap.vala
+++ b/gee/hashmap.vala
@@ -27,7 +27,7 @@ using GLib;
/**
* Hashtable implementation of the Map interface.
*/
-public class Gee.HashMap<K,V> : Object, Map<K,V> {
+public class Gee.HashMap<K,V> : CollectionObject, Map<K,V> {
public int size {
get { return _nnodes; }
}
@@ -62,9 +62,6 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
this.key_hash_func = key_hash_func;
this.key_equal_func = key_equal_func;
this.value_equal_func = value_equal_func;
- }
-
- construct {
_array_size = MIN_SIZE;
_nodes = new Node<K,V>[_array_size];
}
@@ -182,7 +179,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
}
}
- private class KeySet<K,V> : Object, Iterable<K>, Collection<K>, Set<K> {
+ private class KeySet<K,V> : CollectionObject, Iterable<K>, Collection<K>, Set<K> {
public HashMap<K,V> map {
set { _map = value; }
}
@@ -222,7 +219,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
}
}
- private class KeyIterator<K,V> : Object, Iterator<K> {
+ private class KeyIterator<K,V> : CollectionObject, Iterator<K> {
public HashMap<K,V> map {
set {
_map = value;
@@ -259,7 +256,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
}
}
- private class ValueCollection<K,V> : Object, Iterable<V>, Collection<V> {
+ private class ValueCollection<K,V> : CollectionObject, Iterable<V>, Collection<V> {
public HashMap<K,V> map {
set { _map = value; }
}
@@ -305,7 +302,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
}
}
- private class ValueIterator<K,V> : Object, Iterator<V> {
+ private class ValueIterator<K,V> : CollectionObject, Iterator<V> {
public HashMap<K,V> map {
set {
_map = value;