From e2bdb8a2f1646c4ba90eb425240a695f02c81fac Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 21 May 2024 14:28:39 +0200 Subject: [PATCH] Remove unused Checkable#RemoveAllDowntimes() --- lib/icinga/checkable-downtime.cpp | 7 ------- lib/icinga/checkable.hpp | 1 - 2 files changed, 8 deletions(-) diff --git a/lib/icinga/checkable-downtime.cpp b/lib/icinga/checkable-downtime.cpp index d96003d46..ba078a60b 100644 --- a/lib/icinga/checkable-downtime.cpp +++ b/lib/icinga/checkable-downtime.cpp @@ -9,13 +9,6 @@ using namespace icinga; -void Checkable::RemoveAllDowntimes() -{ - for (const Downtime::Ptr& downtime : GetDowntimes()) { - Downtime::RemoveDowntime(downtime->GetName(), true, true, true); - } -} - void Checkable::TriggerDowntimes(double triggerTime) { for (const Downtime::Ptr& downtime : GetDowntimes()) { diff --git a/lib/icinga/checkable.hpp b/lib/icinga/checkable.hpp index 3d48b1445..fcfbca9b2 100644 --- a/lib/icinga/checkable.hpp +++ b/lib/icinga/checkable.hpp @@ -146,7 +146,6 @@ public: /* Downtimes */ int GetDowntimeDepth() const final; - void RemoveAllDowntimes(); void TriggerDowntimes(double triggerTime); bool IsInDowntime() const; bool IsAcknowledged() const;