[libgee/0.6] Small improvements to PriorityQueue



commit 9ad6a6cd92661c9b7e3c67652f962a6b6049017b
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 7727d8f..2446bbe 100644
--- a/gee/priorityqueue.vala
+++ b/gee/priorityqueue.vala
@@ -587,7 +587,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);
 
@@ -791,7 +791,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]