Remove deprecated dynamic throw specifications
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 8 May 2020 02:59:17 +0000 (22:59 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 8 May 2020 02:59:17 +0000 (22:59 -0400)
source/ChannelUserList.C
source/ChannelUserList.H

index 877e554..aaa4f84 100644 (file)
@@ -105,7 +105,7 @@ ChannelUserList::del (const std::string &name) throw ()
 }
 
 User
-ChannelUserList::get (const std::string & name) const throw (user_not_found)
+ChannelUserList::get (const std::string & name) const
 {
   BotLock get_lock (users_mutex);
 
@@ -122,7 +122,6 @@ ChannelUserList::get (const std::string & name) const throw (user_not_found)
 void 
 ChannelUserList::change_nickname (const std::string & old_name, 
                                  std::string new_name) 
-  throw (user_not_found)
 {
   BotLock change_lock (users_mutex);
   
index c86ac16..d4ea5c0 100644 (file)
@@ -62,8 +62,8 @@ public:
 
   void add (std::string, std::string, int, UserList*, bool = false) throw ();
   void del (const std::string &) throw ();
-  User get (const std::string &) const throw (user_not_found);
-  void change_nickname (const std::string &, std::string) throw (user_not_found);
+  User get (const std::string &) const;
+  void change_nickname (const std::string &, std::string);
   void change_user_mode (const std::string &, int, bool) throw ();
   void change_user_key (const std::string &, const std::string &) throw ();
   bool in_channel_p (const std::string &) const throw ();