]> granicus.if.org Git - icinga2/commitdiff
Remove unused variables.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:08:28 +0000 (10:08 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:08:28 +0000 (10:08 +0200)
components/compat/compatlog.cpp

index f648fc3798f680abcdf5eb34b2254a2a8c707707..af6394cde8b9c055ed32c6c7715a3100245d5853 100644 (file)
@@ -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."
                        << "";
 
                {