From f8d22e47ac3b6392d68f1a8a45383798f5751101 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sat, 13 Nov 2010 17:00:46 -0500 Subject: Replace config listeners with the event system Reviewed-by: Jared Adams --- src/configuration.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/configuration.h') 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 #include -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 Listeners; - typedef Listeners::iterator ListenerIterator; - typedef std::map ListenerMap; - typedef ListenerMap::iterator ListenerMapIterator; - ListenerMap mListenerMap; - std::string mConfigPath; /**< Location of config file */ DefaultsData *mDefaultsData; /**< Defaults of value for a given key */ }; -- cgit v1.2.3-60-g2f50