Clean up ConnectToPeer

This commit is contained in:
Benau 2018-04-16 13:08:05 +08:00
parent 0ecc6e34b9
commit 6f30fd0cb0
2 changed files with 0 additions and 5 deletions

View File

@ -37,7 +37,6 @@ ConnectToPeer::ConnectToPeer(uint32_t peer_id) : Protocol(PROTOCOL_CONNECTION)
m_peer_address.clear();
m_peer_id = peer_id;
m_state = NONE;
m_is_lan = false;
} // ConnectToPeer(peer_id)
// ----------------------------------------------------------------------------
@ -51,7 +50,6 @@ ConnectToPeer::ConnectToPeer(const TransportAddress &address)
// We don't need to find the peer address, so we can start
// with the state when we found the peer address.
m_state = WAIT_FOR_CONNECTION;
m_is_lan = true;
} // ConnectToPeers(TransportAddress)
// ----------------------------------------------------------------------------

View File

@ -39,9 +39,6 @@ protected:
* gone. */
std::shared_ptr<Protocol> m_current_protocol;
/** True if this is a LAN connection. */
bool m_is_lan;
/** Timer use for tracking broadcast. */
double m_timer = 0.0;