diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-23 01:10:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-23 01:10:49 +0300 |
commit | 48c0b527f9b20827b06bd7f9abf669faf49487b7 (patch) | |
tree | f4837d522951d7fcfc2c5e513df361486885423b /src/depricatedevent.h | |
parent | 6c9e2b6ed9f67faab400f1876ada6e635f6abf9e (diff) | |
download | manaverse-48c0b527f9b20827b06bd7f9abf669faf49487b7.tar.gz manaverse-48c0b527f9b20827b06bd7f9abf669faf49487b7.tar.bz2 manaverse-48c0b527f9b20827b06bd7f9abf669faf49487b7.tar.xz manaverse-48c0b527f9b20827b06bd7f9abf669faf49487b7.zip |
remove useless code from depricatedevent class.
Diffstat (limited to 'src/depricatedevent.h')
-rw-r--r-- | src/depricatedevent.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/depricatedevent.h b/src/depricatedevent.h index 285d9f240..b7b52e671 100644 --- a/src/depricatedevent.h +++ b/src/depricatedevent.h @@ -133,25 +133,21 @@ class DepricatedEvent final { return mDepricatedEventName; } // Sets or gets a interger with a key to identify - void setInt(const std::string &key, int value) - throw (BadDepricatedEvent); + void setInt(const std::string &key, int value); - int getInt(const std::string &key) - const throw (BadDepricatedEvent) A_WARN_UNUSED; + int getInt(const std::string &key) const A_WARN_UNUSED; // Sets or gets a string with a key to identify void setString(const std::string &key, - const std::string &value) - throw (BadDepricatedEvent); + const std::string &value); const std::string &getString(const std::string &key) - const throw (BadDepricatedEvent) A_WARN_UNUSED; + const A_WARN_UNUSED; // Sets or gets a floating point number with key to identify - void setFloat(const std::string &key, double value) - throw (BadDepricatedEvent); - double getFloat(const std::string &key) - const throw (BadDepricatedEvent) A_WARN_UNUSED; + void setFloat(const std::string &key, double value); + + double getFloat(const std::string &key) const A_WARN_UNUSED; // Sends event to all listener on the channel static void trigger(const Channels channel, @@ -162,6 +158,7 @@ class DepricatedEvent final // Adds or removes a listener to a channel. static void bind(Listener *const listener, const Channels channel); + static void unbind(Listener *const listener, const Channels channel); private: |