Revert "Use ExecuteCommandProcessFinishedHandler in TimePeriodTask"

This reverts commit abf164bceb.
This commit is contained in:
Mattia Codato 2020-07-21 10:52:59 +02:00
parent abf164bceb
commit 867da09fb4
1 changed files with 0 additions and 24 deletions

View File

@ -12,18 +12,6 @@ Array::Ptr TimePeriodTask::EmptyTimePeriodUpdate(const TimePeriod::Ptr& tp, doub
{
REQUIRE_NOT_NULL(tp);
if (Checkable::ExecuteCommandProcessFinishedHandler) {
double now = Utility::GetTime();
ProcessResult pr;
pr.PID = -1;
pr.Output = "";
pr.ExecutionStart = now;
pr.ExecutionEnd = now;
pr.ExitStatus = 0;
Checkable::ExecuteCommandProcessFinishedHandler("", pr);
}
Array::Ptr segments = new Array();
return segments;
}
@ -43,17 +31,5 @@ Array::Ptr TimePeriodTask::EvenMinutesTimePeriodUpdate(const TimePeriod::Ptr& tp
}
}
if (Checkable::ExecuteCommandProcessFinishedHandler) {
double now = Utility::GetTime();
ProcessResult pr;
pr.PID = -1;
pr.Output = "";
pr.ExecutionStart = now;
pr.ExecutionEnd = now;
pr.ExitStatus = 0;
Checkable::ExecuteCommandProcessFinishedHandler("", pr);
}
return new Array(std::move(segments));
}