Removed unnecessary function.

This commit is contained in:
hiker 2015-10-25 20:28:35 +11:00
parent 85cca69113
commit f610573295
2 changed files with 1 additions and 8 deletions

View File

@ -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);

View File

@ -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)
{