From b5f5d167dc2c1791d23fb5b033e52ed51750e02a Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 6 Dec 2017 15:42:39 +0100 Subject: [PATCH] Drop dead CompatUtility::GetCustomAttributeConfig --- lib/icinga/compatutility.cpp | 10 ---------- lib/icinga/compatutility.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index 9a1de411d..3ab26a187 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -244,16 +244,6 @@ Dictionary::Ptr CompatUtility::GetCustomAttributeConfig(const CustomVarObject::P return vars; } -String CompatUtility::GetCustomAttributeConfig(const CustomVarObject::Ptr& object, const String& name) -{ - Dictionary::Ptr vars = object->GetVars(); - - if (!vars) - return Empty; - - return vars->Get(name); -} - /* notifications */ int CompatUtility::GetCheckableNotificationLastNotification(const Checkable::Ptr& checkable) { diff --git a/lib/icinga/compatutility.hpp b/lib/icinga/compatutility.hpp index 0cce3732e..e5c6af536 100644 --- a/lib/icinga/compatutility.hpp +++ b/lib/icinga/compatutility.hpp @@ -79,7 +79,6 @@ public: static std::set GetCheckableNotificationUserGroups(const Checkable::Ptr& checkable); /* custom attribute */ - static String GetCustomAttributeConfig(const CustomVarObject::Ptr& object, const String& name); static Dictionary::Ptr GetCustomAttributeConfig(const CustomVarObject::Ptr& object); /* check result */ -- 2.40.0