Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
248ffa1a
Commit
248ffa1a
authored
Mar 06, 2020
by
Nick Draper
Browse files
Remove dead code and fix a mistake
parent
a099dd82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/API/inc/MantidAPI/Algorithm.h
View file @
248ffa1a
...
...
@@ -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
();
...
...
Framework/API/src/Algorithm.cpp
View file @
248ffa1a
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment