Removed unused ConfigObject methods.

This commit is contained in:
Gunnar Beutner 2012-07-10 15:57:54 +02:00
parent ffd884a6ab
commit 1896ed356f
2 changed files with 0 additions and 28 deletions

View 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;

View 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);