From: Gunnar Beutner Date: Sun, 15 Jul 2012 15:36:02 +0000 (+0200) Subject: Removed unused code. X-Git-Tag: v0.0.1~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0634075abd6edb6c2b95c6e4bc7af6e09dd6c8ac;p=icinga2 Removed unused code. --- diff --git a/base/asynctask.h b/base/asynctask.h index 461330e83..b674f94cf 100644 --- a/base/asynctask.h +++ b/base/asynctask.h @@ -120,41 +120,10 @@ public: FinishInternal(); } - /** - * Invokes the provided callback function and catches any exceptions it throws. - * Exceptions are stored into the task so that they can be re-thrown when the - * task owner calls GetResult(). - * - * @param task The task where exceptions should be saved. - * @param function The function that should be invoked. - * @returns true if no exception occured, false otherwise. - */ - /*bool CallWithExceptionGuard(function function) - { - try { - function(); - - return true; - } catch (const exception&) { - Finish(boost::current_exception()); - - return false; - } - }*/ - protected: virtual void Run(void) = 0; private: - /** - * Used by the Finish method to proxy the completion callback into the main - * thread. Invokes the completion callback and marks the task as finished. - */ - void InvokeCompletionCallback(void) - { - - } - /** * Finishes the task and causes the completion callback to be invoked. This * function must be called before the object is destroyed.