fix iterator, patch by Ali Sabil
authorJuerg Billeter <j@bitron.ch>
Tue, 26 Feb 2008 19:59:14 +0000 (19:59 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 26 Feb 2008 19:59:14 +0000 (19:59 +0000)
2008-02-26  Juerg Billeter  <j@bitron.ch>

* gee/hashset.vala: fix iterator, patch by Ali Sabil

svn path=/trunk/; revision=1056

ChangeLog
gee/hashset.vala

index 806f610..5c00934 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-02-26  Jürg Billeter  <j@bitron.ch>
 
+       * gee/hashset.vala: fix iterator, patch by Ali Sabil
+
+2008-02-26  Jürg Billeter  <j@bitron.ch>
+
        * vapi/glib-2.0.vapi: fix g_test_init binding
 
 2008-02-25  Raffaele Sandrini  <raffaele@sandrini.ch>
index 36ec346..2bc9e3d 100644 (file)
@@ -166,11 +166,6 @@ public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
                        set {
                                _set = value;
                                _stamp = _set._stamp;
-                               // find first node
-                               while (_node == null && _index + 1 < _set._array_size) {
-                                       _index++;
-                                       _node = _set._nodes[_index];
-                               }
                        }
                }