Removed unused variable #4750

This commit is contained in:
Jerry (Xinyu Hou) 2015-07-31 13:42:41 -07:00
parent 0ddf544efb
commit f8bb948776
2 changed files with 2 additions and 7 deletions

View File

@ -59,8 +59,7 @@ SecureSocket::SecureSocket(
SocketMultiplexer* socketMultiplexer) : SocketMultiplexer* socketMultiplexer) :
TCPSocket(events, socketMultiplexer), TCPSocket(events, socketMultiplexer),
m_secureReady(false), m_secureReady(false),
m_fatal(false), m_fatal(false)
m_maxRetry(kMaxRetryCount)
{ {
} }
@ -70,8 +69,7 @@ SecureSocket::SecureSocket(
ArchSocket socket) : ArchSocket socket) :
TCPSocket(events, socketMultiplexer, socket), TCPSocket(events, socketMultiplexer, socket),
m_secureReady(false), m_secureReady(false),
m_fatal(false), m_fatal(false)
m_maxRetry(kMaxRetryCount)
{ {
} }

View File

@ -52,8 +52,6 @@ public:
int secureWrite(const void* buffer, int size, int& wrote); int secureWrite(const void* buffer, int size, int& wrote);
void initSsl(bool server); void initSsl(bool server);
bool loadCertificates(String& CertFile); bool loadCertificates(String& CertFile);
void maxRetry(int limit) { m_maxRetry = limit; };
int maxRetry() const { return m_maxRetry; };
private: private:
// SSL // SSL
@ -87,5 +85,4 @@ private:
Ssl* m_ssl; Ssl* m_ssl;
bool m_secureReady; bool m_secureReady;
bool m_fatal; bool m_fatal;
int m_maxRetry;
}; };