From 1f5a92a22d355e1b558ae7104d0c765aa4de0d3f Mon Sep 17 00:00:00 2001 From: Mattia Codato Date: Thu, 23 Jul 2020 13:20:31 +0200 Subject: [PATCH] Remove unuseful variables --- lib/icinga/clusterevents-check.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/icinga/clusterevents-check.cpp b/lib/icinga/clusterevents-check.cpp index 3ccdc8d12..75baed6ab 100644 --- a/lib/icinga/clusterevents-check.cpp +++ b/lib/icinga/clusterevents-check.cpp @@ -233,8 +233,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons if (params->Contains("source")) { double now = Utility::GetTime(); - ServiceState state = ServiceUnknown; - SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint); + SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint); } return; } @@ -245,8 +244,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons if (params->Contains("source")) { double now = Utility::GetTime(); - ServiceState state = ServiceUnknown; - SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint); + SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint); } return; } @@ -295,8 +293,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons host->GetName() + "': " + DiagnosticInformation(ex); double now = Utility::GetTime(); - ServiceState state = ServiceUnknown; - SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint); + SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint); } } } else if (command_type == "notification_command") { @@ -331,8 +328,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons + "' and user '" + user->GetName() + "' using command '" + command + "': " + DiagnosticInformation(ex, false); double now = Utility::GetTime(); - ServiceState state = ServiceUnknown; - SendEventExecuteCommand(params, state, output, now, now, listener, origin, sourceEndpoint); + SendEventExecuteCommand(params, ServiceUnknown, output, now, now, listener, origin, sourceEndpoint); } } }