[tasque/transition: 149/213] [SQlite] Drop task and category comparisons. Those are done in base class
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 149/213] [SQlite] Drop task and category comparisons. Those are done in base class
- Date: Wed, 29 Aug 2012 18:46:33 +0000 (UTC)
commit 56d2e2d09c1bf0829f988f70daf0fa1229f3bbed
Author: Antonius Riha <antoniusriha gmail com>
Date: Sat Aug 18 18:34:22 2012 +0200
[SQlite] Drop task and category comparisons. Those are done in base class
src/Addins/SqliteBackend/SqliteBackend.cs | 31 -----------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/SqliteBackend.cs b/src/Addins/SqliteBackend/SqliteBackend.cs
index dfeb12a..045145a 100644
--- a/src/Addins/SqliteBackend/SqliteBackend.cs
+++ b/src/Addins/SqliteBackend/SqliteBackend.cs
@@ -139,37 +139,6 @@ namespace Tasque.Backends.Sqlite
#endregion // Public Methods
#region Private Methods
- static int CompareTasksSortFunc (Gtk.TreeModel model,
- Gtk.TreeIter a,
- Gtk.TreeIter b)
- {
- Task taskA = model.GetValue (a, 0) as Task;
- Task taskB = model.GetValue (b, 0) as Task;
-
- if (taskA == null || taskB == null)
- return 0;
-
- return (taskA.CompareTo (taskB));
- }
-
- static int CompareCategorySortFunc (Gtk.TreeModel model,
- Gtk.TreeIter a,
- Gtk.TreeIter b)
- {
- Category categoryA = model.GetValue (a, 0) as Category;
- Category categoryB = model.GetValue (b, 0) as Category;
-
- if (categoryA == null || categoryB == null)
- return 0;
-
- if (categoryA is Tasque.AllCategory)
- return -1;
- else if (categoryB is Tasque.AllCategory)
- return 1;
-
- return (categoryA.Name.CompareTo (categoryB.Name));
- }
-
public void UpdateTask (SqliteTask task)
{
// Set the task in the store so the model will update the UI.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]