]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Change return type of ListenSocket::ResetIOHookProvider() to void
authorAttila Molnar <attilamolnar@hush.com>
Mon, 8 Aug 2016 13:06:41 +0000 (15:06 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 8 Aug 2016 13:06:41 +0000 (15:06 +0200)
No code was using the return value

include/socket.h
src/listensocket.cpp

index b15ddcb3dca6ec4c5f3ecf6f52e5182545bb28fc..52294fe719eb329018375ed4bfbd1f054cf4b077 100644 (file)
@@ -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();
 };
index fa43e6827240b8ed113b55003a356c6a51507b84..f560ad277e0e378853571f6f03483e9191c2f7e2 100644 (file)
@@ -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);
 }