Change return_if_fail into assert in remove_at of LinkedList.
authorMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 18 Sep 2010 08:10:05 +0000 (09:10 +0100)
committerMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 18 Sep 2010 08:10:05 +0000 (09:10 +0100)
It fixes build issue described in bug #629933 and make the behavior
compatible with ArrayList.

gee/linkedlist.vala

index 66e7082..b70569d 100644 (file)
@@ -212,7 +212,7 @@ public class Gee.LinkedList<G> : AbstractList<G>, Queue<G>, Deque<G> {
                assert (index < this._size);
 
                unowned Node<G>? n = this._get_node_at (index);
-               return_if_fail (n != null);
+               assert (n != null);
                G element = n.data;
                this._remove_node (n);
                return element;