Remove duplicate last_check runtime macro

Already available as {host,service}.last_check attribute.

refs #11483
This commit is contained in:
Michael Friedrich 2016-06-16 17:39:59 +02:00
parent 039461e218
commit b4c56e5f47
2 changed files with 0 additions and 6 deletions

View File

@ -300,9 +300,6 @@ bool Host::ResolveMacro(const String& macro, const CheckResult::Ptr&, Value *res
} else if (macro == "perfdata") {
*result = PluginUtility::FormatPerfdata(cr->GetPerformanceData());
return true;
} else if (macro == "last_check") {
*result = cr->GetScheduleStart();
return true;
} else if (macro == "check_source") {
*result = cr->GetCheckSource();
return true;

View File

@ -230,9 +230,6 @@ bool Service::ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Valu
} else if (macro == "perfdata") {
*result = PluginUtility::FormatPerfdata(cr->GetPerformanceData());
return true;
} else if (macro == "last_check") {
*result = cr->GetExecutionEnd();
return true;
} else if (macro == "check_source") {
*result = cr->GetCheckSource();
return true;