diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index dff07699e..9c2ae7ec8 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -23,7 +23,6 @@ std::map Notification::m_StateFilterMap; std::map Notification::m_TypeFilterMap; boost::signals2::signal Notification::OnNextNotificationChanged; -boost::signals2::signal Notification::OnNewNotificationResult; String NotificationNameComposer::MakeName(const String& shortName, const Object::Ptr& context) const { @@ -528,15 +527,6 @@ void Notification::ExecuteNotificationHelper(NotificationType type, const User:: } } -void Notification::ProcessNotificationResult(const NotificationResult::Ptr& nr, const MessageOrigin::Ptr& origin) -{ - if (!nr) - return; - - /* Notify cluster, API and feature events. */ - OnNewNotificationResult(this, nr, origin); -} - int icinga::ServiceStateToFilter(ServiceState state) { switch (state) { diff --git a/lib/icinga/notification.hpp b/lib/icinga/notification.hpp index d9f6ff960..2922308c8 100644 --- a/lib/icinga/notification.hpp +++ b/lib/icinga/notification.hpp @@ -10,7 +10,6 @@ #include "icinga/usergroup.hpp" #include "icinga/timeperiod.hpp" #include "icinga/checkresult.hpp" -#include "icinga/notificationresult.hpp" #include "remote/endpoint.hpp" #include "remote/messageorigin.hpp" #include "base/array.hpp" @@ -83,8 +82,6 @@ public: Endpoint::Ptr GetCommandEndpoint() const; - void ProcessNotificationResult(const NotificationResult::Ptr& nr, const MessageOrigin::Ptr& origin); - // Logging, etc. static String NotificationTypeToString(NotificationType type); // Compat, used for notifications, etc. @@ -95,7 +92,6 @@ public: static String NotificationHostStateToString(HostState state); static boost::signals2::signal OnNextNotificationChanged; - static boost::signals2::signal OnNewNotificationResult; void Validate(int types, const ValidationUtils& utils) override;