From: Gunnar Beutner Date: Wed, 18 Sep 2013 08:08:28 +0000 (+0200) Subject: Remove unused variables. X-Git-Tag: v0.0.3~478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c12b4b2e0b4c8bdab599c99e73859c06da425fc2;p=icinga2 Remove unused variables. --- diff --git a/components/compat/compatlog.cpp b/components/compat/compatlog.cpp index f648fc379..af6394cde 100644 --- a/components/compat/compatlog.cpp +++ b/components/compat/compatlog.cpp @@ -181,15 +181,12 @@ void CompatLog::TriggerDowntimeHandler(const Service::Ptr& service, const Dictio if (!downtime) return; - String downtime_output = "Service has entered a period of scheduled downtime."; - String downtime_state_str = "STARTED"; - std::ostringstream msgbuf; msgbuf << "SERVICE DOWNTIME ALERT: " << host->GetName() << ";" << service->GetShortName() << ";" - << downtime_state_str << "; " - << downtime_output + << "STARTED" << "; " + << "Service has entered a period of scheduled downtime." << ""; { @@ -201,8 +198,8 @@ void CompatLog::TriggerDowntimeHandler(const Service::Ptr& service, const Dictio std::ostringstream msgbuf; msgbuf << "HOST DOWNTIME ALERT: " << host->GetName() << ";" - << downtime_state_str << "; " - << downtime_output + << "STARTED" << "; " + << "Service has entered a period of scheduled downtime." << ""; {