[libgee] Change return_if_fail into assert in remove_at of LinkedList.



commit 235d9b0410b68062911c414badf9a94bce1d34b6
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Sat Sep 18 09:10:05 2010 +0100

    Change return_if_fail into assert in remove_at of LinkedList.
    
    It fixes build issue described in bug #629933 and make the behavior
    compatible with ArrayList.

 gee/linkedlist.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gee/linkedlist.vala b/gee/linkedlist.vala
index 66e7082..b70569d 100644
--- a/gee/linkedlist.vala
+++ b/gee/linkedlist.vala
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]