Removed unused functions.

This commit is contained in:
hiker 2015-10-22 23:41:49 +11:00
parent e6ae208b4f
commit b8cd9cfb81
2 changed files with 0 additions and 26 deletions

View File

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

View File

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