From f3c035d2b801e17930803ada79aadf025f136ea0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Sep 2014 14:20:15 -0400 Subject: [PATCH] TDB2 - Removed hook processing that is now in the wrong place. --- src/TDB2.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/TDB2.cpp b/src/TDB2.cpp index a1a76e61b..73b4039ac 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -151,10 +151,6 @@ bool TF2::has (const std::string& uuid) //////////////////////////////////////////////////////////////////////////////// void TF2::add_task (Task& task) { - bool enabled = context.hooks.enable (false); - context.hooks.onAdd (task); - context.hooks.enable (enabled); - _tasks.push_back (task); // For subsequent queries _added_tasks.push_back (task); // For commit/synch @@ -183,14 +179,8 @@ bool TF2::modify_task (const Task& task) { if (i->get ("uuid") == uuid) { - Task hookTask (task); - - bool enabled = context.hooks.enable (false); - context.hooks.onModify (*i, hookTask); - context.hooks.enable (enabled); - - *i = hookTask; - _modified_tasks.push_back (hookTask); + *i = task; + _modified_tasks.push_back (task); _dirty = true; return true;