From b5fe48b5644dfd83a55af51d7c8d8e9b799fdf74 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 18 Feb 2019 13:22:27 +0100 Subject: Remove serializing where result was unused I'm not sure why this was still there, it seems that this was left out when deleting older code. Signed-off-by: Matthias Beyer --- lib/domain/libimagtodo/src/taskstore.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/domain/libimagtodo/src/taskstore.rs b/lib/domain/libimagtodo/src/taskstore.rs index 48b6e16e..aca7890f 100644 --- a/lib/domain/libimagtodo/src/taskstore.rs +++ b/lib/domain/libimagtodo/src/taskstore.rs @@ -128,7 +128,6 @@ impl<'a> TaskStore<'a> for Store { } fn delete_tasks_by_imports(&self, r: R) -> Result<()> { - use serde_json::ser::to_string as serde_to_string; use task_hookrs::status::TaskStatus; for (counter, res_ttask) in import_tasks(r).into_iter().enumerate() { @@ -139,8 +138,7 @@ impl<'a> TaskStore<'a> for Store { // task before the change, and the second one after // the change. The (maybe modified) second one is // expected by taskwarrior. - let val = serde_to_string(&ttask).context(err_msg("Import error"))?; - + // // Taskwarrior does not have the concept of deleted tasks, but only modified // ones. // -- cgit v1.2.3