diff --git a/src/network/network_manager.cpp b/src/network/network_manager.cpp index c2825a0c8..4853cc4f7 100644 --- a/src/network/network_manager.cpp +++ b/src/network/network_manager.cpp @@ -104,21 +104,6 @@ bool NetworkManager::connect(const TransportAddress& address) return STKPeer::connectToHost(m_localhost, address, 2, 0); } // connect -//----------------------------------------------------------------------------- -/** \brief Changes the socket working mode. - * Sockets can be in two modes : The ENet mode and a mode we will call - * the 'Raw' mode. In the ENet mode, the socket will be read as - * \param peer : The transport address which you want to connect to. - * \return True if we're successfully connected. False elseway. - */ -void NetworkManager::setManualSocketsMode(bool manual) -{ - if (manual) - m_localhost->stopListening(); - else - m_localhost->startListening(); -} // setManualSocketsMode - //----------------------------------------------------------------------------- /** Is called from STKHost when an event (i.e. a package) is received. If the * event indicates a new connection, the peer is added to the list of peers. @@ -212,15 +197,6 @@ void NetworkManager::disconnected() } // disconnected //----------------------------------------------------------------------------- - -void NetworkManager::setLogin(std::string username, std::string password) -{ - m_player_login.username = username; - m_player_login.password = password; -} // setLogin - -//----------------------------------------------------------------------------- - void NetworkManager::setPublicAddress(const TransportAddress& addr) { m_public_address.lock(); diff --git a/src/network/network_manager.hpp b/src/network/network_manager.hpp index ab48d9e15..84d452e44 100644 --- a/src/network/network_manager.hpp +++ b/src/network/network_manager.hpp @@ -74,7 +74,6 @@ public: virtual void reset(); virtual void abort(); virtual bool connect(const TransportAddress& peer); - virtual void setManualSocketsMode(bool manual); virtual void propagateEvent(Event* event); virtual void sendPacket(const NetworkString& data, bool reliable = true) = 0; @@ -91,7 +90,6 @@ public: virtual bool isServer() = 0; // raw data management - void setLogin(std::string username, std::string password); void setPublicAddress(const TransportAddress& addr); void removePeer(STKPeer* peer);