[libgee] Small improvements to PriorityQueue



commit ef19fe7fe93688c1d196ed9337a09d1ae36fbcf0
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Sun Dec 2 14:02:46 2012 +0000

    Small improvements to PriorityQueue

 gee/priorityqueue.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gee/priorityqueue.vala b/gee/priorityqueue.vala
index bee5217..d0c5d6b 100644
--- a/gee/priorityqueue.vala
+++ b/gee/priorityqueue.vala
@@ -595,7 +595,7 @@ public class Gee.PriorityQueue<G> : Gee.AbstractQueue<G> {
 		#endif
 	}
 
-	private void _delete (Node<G> n, out unowned Node<G> prev = null) {
+	private void _delete (Node<G> n) {
 		// DecreaseKey(Q, N, infinite)
 		_decrease_key (n);
 
@@ -799,7 +799,6 @@ public class Gee.PriorityQueue<G> : Gee.AbstractQueue<G> {
 
 		// Ensure proper sizes of A and B
 		if (degree >= _a.length) {
-			int old_length = _a.length;
 			_a.resize (degree + 1);
 			_b.resize (degree + 1);
 		}



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