1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Remove unused parameters

This commit is contained in:
Ivan Savenko
2025-02-03 18:02:01 +00:00
parent 048fc503c3
commit c3af0dc469
3 changed files with 25 additions and 21 deletions

View File

@ -186,9 +186,9 @@ void CServerHandler::startLocalServerAndConnect(bool connectToLobby)
si->difficulty = lastDifficulty.Integer();
logNetwork->trace("\tStarting local server");
uint16_t srvport = serverRunner->start(getLocalPort(), loadMode == ELoadMode::MULTI, connectToLobby, si);
serverRunner->start(loadMode == ELoadMode::MULTI, connectToLobby, si);
logNetwork->trace("\tConnecting to local server");
connectToServer(getLocalHostname(), srvport);
connectToServer(getLocalHostname(), getLocalPort());
logNetwork->trace("\tWaiting for connection");
}
@ -211,7 +211,7 @@ void CServerHandler::connectToServer(const std::string & addr, const ui16 port)
}
else
{
serverRunner->connect(*networkHandler, *this, addr, port);
serverRunner->connect(*networkHandler, *this);
}
}
@ -249,7 +249,7 @@ void CServerHandler::onTimer()
}
assert(isServerLocal());
serverRunner->connect(*networkHandler, *this, getLocalHostname(), getLocalPort());
serverRunner->connect(*networkHandler, *this);
}
void CServerHandler::onConnectionEstablished(const NetworkConnectionPtr & netConnection)