From b788aa6e9587b489b8ffac37aa293847fcc95896 Mon Sep 17 00:00:00 2001 From: hiker Date: Mon, 26 Oct 2015 18:31:32 +1100 Subject: [PATCH] Removed NetworkManager::isConnectedTO --- src/network/network_manager.hpp | 6 ------ src/network/protocols/client_lobby_room_protocol.cpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/network/network_manager.hpp b/src/network/network_manager.hpp index 734d1ee7e..91d60cec0 100644 --- a/src/network/network_manager.hpp +++ b/src/network/network_manager.hpp @@ -66,12 +66,6 @@ public: // raw data management // getters - // -------------------------------------------------------------------- - virtual bool isConnectedTo(const TransportAddress& peer) - { - return STKHost::get()->isConnectedTo(peer); - } // isConnectedTo - // -------------------------------------------------------------------- inline bool isClient() { return !isServer(); } diff --git a/src/network/protocols/client_lobby_room_protocol.cpp b/src/network/protocols/client_lobby_room_protocol.cpp index 35c44a463..bb0d5ab23 100644 --- a/src/network/protocols/client_lobby_room_protocol.cpp +++ b/src/network/protocols/client_lobby_room_protocol.cpp @@ -225,7 +225,7 @@ void ClientLobbyRoomProtocol::update() switch (m_state) { case NONE: - if (NetworkManager::getInstance()->isConnectedTo(m_server_address)) + if (STKHost::get()->isConnectedTo(m_server_address)) { m_state = LINKED; }