]> granicus.if.org Git - icinga2/commitdiff
Removed unused ConfigObject methods.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 10 Jul 2012 13:57:54 +0000 (15:57 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 10 Jul 2012 13:57:54 +0000 (15:57 +0200)
base/configobject.cpp
base/configobject.h

index e196ec109b97de0003f1637c55b2f986e169f0a3..13b6f7d5c7b68dd614979b587f2455a0d7d6d3f8 100644 (file)
@@ -26,14 +26,6 @@ ConfigObject::ConfigObject(Dictionary::Ptr properties, const ConfigObject::Set::
        m_Properties(properties), m_Tags(boost::make_shared<Dictionary>())
 { }
 
-ConfigObject::ConfigObject(string type, string name, const ConfigObject::Set::Ptr& container)
-       : m_Container(container ? container : GetAllObjects()),
-       m_Properties(boost::make_shared<Dictionary>()), m_Tags(boost::make_shared<Dictionary>())
-{
-       SetProperty("__type", type);
-       SetProperty("__name", name);
-}
-
 void ConfigObject::SetProperties(Dictionary::Ptr properties)
 {
        m_Properties = properties;
@@ -63,11 +55,6 @@ string ConfigObject::GetName(void) const
        return name;
 }
 
-void ConfigObject::SetLocal(bool value)
-{
-       GetProperties()->Set("__local", value ? 1 : 0);
-}
-
 bool ConfigObject::IsLocal(void) const
 {
        bool value = false;
@@ -75,11 +62,6 @@ bool ConfigObject::IsLocal(void) const
        return value;
 }
 
-void ConfigObject::SetAbstract(bool value)
-{
-       GetProperties()->Set("__abstract", value ? 1 : 0);
-}
-
 bool ConfigObject::IsAbstract(void) const
 {
        bool value = false;
index ca8975d6acc3d843d29e35679b4e5bbd7475c011..2a5bd31b06c96d465e09672a4fa60402161dbc44 100644 (file)
@@ -39,17 +39,10 @@ public:
        typedef ObjectSet<ConfigObject::Ptr> Set;
 
        ConfigObject(Dictionary::Ptr properties, const Set::Ptr& container = Set::Ptr());
-       ConfigObject(string type, string name, const Set::Ptr& container = Set::Ptr());
 
        void SetProperties(Dictionary::Ptr config);
        Dictionary::Ptr GetProperties(void) const;
 
-       template<typename T>
-       void SetProperty(const string& key, const T& value)
-       {
-               GetProperties()->Set(key, value);
-       }
-
        template<typename T>
        bool GetProperty(const string& key, T *value) const
        {
@@ -73,10 +66,7 @@ public:
        string GetType(void) const;
        string GetName(void) const;
 
-       void SetLocal(bool value);
        bool IsLocal(void) const;
-
-       void SetAbstract(bool value);
        bool IsAbstract(void) const;
 
        void SetSource(const string& value);