]> granicus.if.org Git - icinga2/commitdiff
Drop dead CompatUtility::GetCustomAttributeConfig
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 6 Dec 2017 14:42:39 +0000 (15:42 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 15 Jan 2018 12:39:34 +0000 (13:39 +0100)
lib/icinga/compatutility.cpp
lib/icinga/compatutility.hpp

index 9a1de411d2719868953170af077c4e29836d3b69..3ab26a187615a5e70c29a4a5450946c4fd61d983 100644 (file)
@@ -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)
 {
index 0cce3732eacd966be8fab00afd365c3ce14f270d..e5c6af536acbb028b758b376dfd809fc4efc0cc3 100644 (file)
@@ -79,7 +79,6 @@ public:
        static std::set<UserGroup::Ptr> 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 */