Commit 248ffa1a authored by Nick Draper's avatar Nick Draper
Browse files

Remove dead code and fix a mistake

parent a099dd82
......@@ -338,7 +338,6 @@ protected:
void setExecutionState(const ExecutionState state); ///< Sets the current execution state
void setResultState(const ResultState state); ///< Sets the result execution state
void setExecuted(bool state);
void store();
......
......@@ -143,23 +143,6 @@ bool Algorithm::isExecuted() const {
return ((executionState() == ExecutionState::FINISHED) && (resultState() == ResultState::SUCCESS)) ;
}
//---------------------------------------------------------------------------------------------
/** Set the executed flag to the specified state
// Public in Gaudi - don't know why and will leave here unless we find a reason
otherwise
// Also don't know reason for different return type and argument.
@param state :: New executed state
*/
void Algorithm::setExecuted(bool state) {
if (state) {
setExecutionState(ExecutionState::FINISHED);
setResultState(ResultState::SUCCESS);
} else {
setExecutionState(ExecutionState::FINISHED);
setResultState(ResultState::FAILED);
}
}
//---------------------------------------------------------------------------------------------
/** To query whether algorithm is a child.
* @returns true - the algorithm is a child algorithm. False - this is a full
......@@ -765,7 +748,7 @@ bool Algorithm::executeInternal() {
// Only gets to here if algorithm ended normally
if (algIsExecuted) {
setExecutionState(ExecutionState::FINISHED);
setResultState(ResultState::FAILED);
setResultState(ResultState::SUCCESS);
}
notificationCenter().postNotification(
new FinishedNotification(this, algIsExecuted));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment