[tasque/transition: 153/213] [SQLite] No need for updating the UI manually anymore



commit 6978733019dfd7f4a2f3bd48e1b2535a849b82ea
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Aug 18 19:06:01 2012 +0200

    [SQLite] No need for updating the UI manually anymore

 src/Addins/SqliteBackend/SqliteBackend.cs |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/Addins/SqliteBackend/SqliteBackend.cs b/src/Addins/SqliteBackend/SqliteBackend.cs
index 6d1ec01..c0c3c3f 100644
--- a/src/Addins/SqliteBackend/SqliteBackend.cs
+++ b/src/Addins/SqliteBackend/SqliteBackend.cs
@@ -127,30 +127,6 @@ namespace Tasque.Backends.Sqlite
 		#endregion // Public Methods
 		
 		#region Private Methods
-		public void UpdateTask (SqliteTask task)
-		{
-			// Set the task in the store so the model will update the UI.
-			Gtk.TreeIter iter;
-			
-			if (!taskIters.ContainsKey (task.SqliteId))
-				return;
-				
-			iter = taskIters [task.SqliteId];
-			
-			if (task.State == TaskState.Deleted) {
-				taskIters.Remove (task.SqliteId);
-				if (!taskStore.Remove (ref iter)) {
-					Debug.WriteLine ("Successfully deleted from taskStore: {0}",
-						task.Name);
-				} else {
-					Debug.WriteLine ("Problem removing from taskStore: {0}",
-						task.Name);
-				}
-			} else {
-				taskStore.SetValue (iter, 0, task);
-			}
-		}
-		
 		public void RefreshCategories ()
 		{
 			Gtk.TreeIter iter;



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