diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-11-13 17:00:46 -0500 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-11-13 17:39:15 -0500 |
commit | f8d22e47ac3b6392d68f1a8a45383798f5751101 (patch) | |
tree | e29b42821ec8f6e579f2cfd4d2a20bc8c248b930 /src/configuration.h | |
parent | 8e7e63a2473eedd36eeef726e45dacc9d17d157a (diff) | |
download | mana-f8d22e47ac3b6392d68f1a8a45383798f5751101.tar.gz mana-f8d22e47ac3b6392d68f1a8a45383798f5751101.tar.bz2 mana-f8d22e47ac3b6392d68f1a8a45383798f5751101.tar.xz mana-f8d22e47ac3b6392d68f1a8a45383798f5751101.zip |
Replace config listeners with the event system
Reviewed-by: Jared Adams
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/configuration.h b/src/configuration.h index 451b55a3..a46b0718 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -32,7 +32,6 @@ #include <map> #include <string> -class ConfigListener; class ConfigurationObject; /** @@ -215,17 +214,6 @@ class Configuration : public ConfigurationObject */ void write(); - /** - * Adds a listener to the listen list of the specified config option. - */ - void addListener(const std::string &key, ConfigListener *listener); - - /** - * Removes a listener from the listen list of the specified config - * option. - */ - void removeListener(const std::string &key, ConfigListener *listener); - void setValue(const std::string &key, const std::string &value); inline void setValue(const std::string &key, const char *value) @@ -267,12 +255,6 @@ class Configuration : public ConfigurationObject */ void cleanDefaults(); - typedef std::list<ConfigListener*> Listeners; - typedef Listeners::iterator ListenerIterator; - typedef std::map<std::string, Listeners> ListenerMap; - typedef ListenerMap::iterator ListenerMapIterator; - ListenerMap mListenerMap; - std::string mConfigPath; /**< Location of config file */ DefaultsData *mDefaultsData; /**< Defaults of value for a given key */ }; |