Removed unused code.

This commit is contained in:
Gunnar Beutner 2012-07-15 17:36:02 +02:00
parent fd38babd98
commit 0634075abd
1 changed files with 0 additions and 31 deletions

View File

@ -120,41 +120,10 @@ public:
FinishInternal(); 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<void ()> function)
{
try {
function();
return true;
} catch (const exception&) {
Finish(boost::current_exception());
return false;
}
}*/
protected: protected:
virtual void Run(void) = 0; virtual void Run(void) = 0;
private: 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 * Finishes the task and causes the completion callback to be invoked. This
* function must be called before the object is destroyed. * function must be called before the object is destroyed.