Removed unnecessary function.
This commit is contained in:
parent
85cca69113
commit
f610573295
@ -88,7 +88,7 @@ void NetworkManager::abort()
|
||||
*/
|
||||
bool NetworkManager::connect(const TransportAddress& address)
|
||||
{
|
||||
if (peerExists(address))
|
||||
if (STKHost::get()->peerExists(address))
|
||||
return isConnectedTo(address);
|
||||
|
||||
return STKPeer::connectToHost(STKHost::get(), address, 2, 0);
|
||||
|
@ -83,13 +83,6 @@ public:
|
||||
void removePeer(STKPeer* peer);
|
||||
|
||||
// getters
|
||||
// ------------------------------------------------------------------------
|
||||
/** Returns if a peer from the specified IP:port address
|
||||
* already exists. */
|
||||
virtual bool peerExists(const TransportAddress& peer)
|
||||
{
|
||||
return STKHost::get()->peerExists(peer);
|
||||
} // peerExists
|
||||
// --------------------------------------------------------------------
|
||||
virtual bool isConnectedTo(const TransportAddress& peer)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user