summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-26 18:01:24 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-10-26 18:01:24 +0100
commit382662a8a4ae5c501b096643cb8f09d2d9d084d0 (patch)
tree30c0499a406c365cbe4ec7f068d51d80a5c9dfaf /src/modules
parent680e9e0809d8569c8268122e3fecd2b6b62b2e65 (diff)
Remove some dead code found by Coverity
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp4
-rw-r--r--src/modules/m_spanningtree/treesocket.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 02f44f2f1..b21091d3f 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -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)
diff --git a/src/modules/m_spanningtree/treesocket.h b/src/modules/m_spanningtree/treesocket.h
index d8445572b..abda28335 100644
--- a/src/modules/m_spanningtree/treesocket.h
+++ b/src/modules/m_spanningtree/treesocket.h
@@ -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 */