mirror of https://github.com/Icinga/icinga2.git
Removed unused code.
This commit is contained in:
parent
fd38babd98
commit
0634075abd
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue