[gnome-boxes] Remove SortedCollection
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Remove SortedCollection
- Date: Sat, 5 Nov 2011 03:20:17 +0000 (UTC)
commit 869e71d9b5f4089b6ae1df80b73d24b3ed1d72d9
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Sat Nov 5 02:52:50 2011 +0100
Remove SortedCollection
src/collection-view.vala | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index bb444ea..ad5d119 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -218,35 +218,4 @@ private class Boxes.CollectionView: Boxes.UI {
app.state.set_key (null, "display", over_boxes, "x", AnimationMode.EASE_OUT_QUAD, (float) 0, 0, 0);
app.state.set_key (null, "display", over_boxes, "y", AnimationMode.EASE_OUT_QUAD, (float) 0, 0, 0);
}
-
- private class SortedCollection: GLib.Object {
- public GLib.Sequence<CollectionItem> sequence = new GLib.Sequence<CollectionItem> ();
- CompareDataFunc<CollectionItem> compare;
-
- public SortedCollection(owned CompareDataFunc<CollectionItem> compare) {
- this.compare = (owned) compare;
- }
-
- public SequenceIter<CollectionItem> insert (owned CollectionItem item) {
- return sequence.insert_sorted (item, compare);
- }
-
- public void remove (CollectionItem item) {
- var iter = sequence.lookup (item, compare);
- if (iter != null)
- sequence.remove (iter);
- }
-
- public string to_string () {
- var str = "";
-
- var iter = sequence.get_begin_iter ();
- while (!iter.is_end ()) {
- str += iter.get ().name + " ";
- iter = iter.next ();
- }
-
- return str;
- }
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]