]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove some dead code found by Coverity
authorAttila Molnar <attilamolnar@hush.com>
Sun, 26 Oct 2014 17:01:24 +0000 (18:01 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 26 Oct 2014 17:01:24 +0000 (18:01 +0100)
src/modules/extra/m_ssl_openssl.cpp
src/modules/m_spanningtree/treesocket.h

index 02f44f2f13cf8b5cd50a116f606821dcd9a24b3d..b21091d3fddc6f2b6c5ca53bdd26ebd3a0b95c70 100644 (file)
@@ -750,10 +750,8 @@ class ModuleSSLOpenSSL : public Module
                else if (ret == 0)
                {
                        CloseSession(session);
-                       return false;
                }
-
-               return true;
+               return false;
        }
 
        void CloseSession(issl_session* session)
index d8445572bf0c405b51f4aed800a7cc4ad6307ba1..abda283353def3e2fab90d2ea4cdf04593f80f76 100644 (file)
@@ -97,8 +97,6 @@ class TreeSocket : public BufferedSocket
        ServerState LinkState;                  /* Link state */
        CapabData* capab;                       /* Link setup data (held until burst is sent) */
        TreeServer* MyRoot;                     /* The server we are talking to */
-       time_t NextPing;                        /* Time when we are due to ping this server */
-       bool LastPingWasGood;                   /* Responded to last ping we sent? */
        int proto_version;                      /* Remote protocol version */
        bool ConnectionFailureShown; /* Set to true if a connection failure message was shown */