From: Attila Molnar Date: Mon, 8 Aug 2016 13:06:41 +0000 (+0200) Subject: Change return type of ListenSocket::ResetIOHookProvider() to void X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=2b3b0ce142c16d50462e644821983c525874f10e;p=user%2Fhenk%2Fcode%2Finspircd.git Change return type of ListenSocket::ResetIOHookProvider() to void No code was using the return value --- diff --git a/include/socket.h b/include/socket.h index b15ddcb3d..52294fe71 100644 --- a/include/socket.h +++ b/include/socket.h @@ -159,7 +159,6 @@ class CoreExport ListenSocket : public EventHandler /** Inspects the bind block belonging to this socket to set the name of the IO hook * provider which this socket will use for incoming connections. - * @return True if the IO hook provider was found or none was given, false otherwise. */ - bool ResetIOHookProvider(); + void ResetIOHookProvider(); }; diff --git a/src/listensocket.cpp b/src/listensocket.cpp index fa43e6827..f560ad277 100644 --- a/src/listensocket.cpp +++ b/src/listensocket.cpp @@ -178,7 +178,7 @@ void ListenSocket::OnEventHandlerRead() } } -bool ListenSocket::ResetIOHookProvider() +void ListenSocket::ResetIOHookProvider() { std::string provname = bind_tag->getString("ssl"); if (!provname.empty()) @@ -186,7 +186,4 @@ bool ListenSocket::ResetIOHookProvider() // Set the new provider name, dynref handles the rest iohookprov.SetProvider(provname); - - // Return true if no provider was set, or one was set and it was also found - return (provname.empty() || iohookprov); }