From 1896ed356fa2e4d282327b6d182a36da9956a45f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 10 Jul 2012 15:57:54 +0200 Subject: [PATCH] Removed unused ConfigObject methods. --- base/configobject.cpp | 18 ------------------ base/configobject.h | 10 ---------- 2 files changed, 28 deletions(-) diff --git a/base/configobject.cpp b/base/configobject.cpp index e196ec109..13b6f7d5c 100644 --- a/base/configobject.cpp +++ b/base/configobject.cpp @@ -26,14 +26,6 @@ ConfigObject::ConfigObject(Dictionary::Ptr properties, const ConfigObject::Set:: m_Properties(properties), m_Tags(boost::make_shared()) { } -ConfigObject::ConfigObject(string type, string name, const ConfigObject::Set::Ptr& container) - : m_Container(container ? container : GetAllObjects()), - m_Properties(boost::make_shared()), m_Tags(boost::make_shared()) -{ - 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; diff --git a/base/configobject.h b/base/configobject.h index ca8975d6a..2a5bd31b0 100644 --- a/base/configobject.h +++ b/base/configobject.h @@ -39,17 +39,10 @@ public: typedef ObjectSet 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 - void SetProperty(const string& key, const T& value) - { - GetProperties()->Set(key, value); - } - template 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); -- 2.50.1