mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 08:52:40 +01:00
Cleanup: remove UI for changing the password
This commit is contained in:
@@ -1667,16 +1667,6 @@ bool NetworkServerChangeClientName(ClientID client_id, const std::string &new_na
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set/Reset a company password on the server end.
|
||||
* @param company_id ID of the company the password should be changed for.
|
||||
* @param password The new password.
|
||||
* @param already_hashed Is the given password already hashed?
|
||||
*/
|
||||
void NetworkServerSetCompanyPassword([[maybe_unused]] CompanyID company_id, [[maybe_unused]] const std::string &password, [[maybe_unused]] bool already_hashed)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the command-queue of a socket.
|
||||
* @param cs The socket to handle the queue for.
|
||||
@@ -1983,20 +1973,6 @@ void NetworkServerUpdateGameInfo()
|
||||
if (_network_server) FillStaticNetworkServerGameInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tell that a particular company is (not) passworded.
|
||||
* @param company_id The company that got/removed the password.
|
||||
* @param passworded Whether the password was received or removed.
|
||||
*/
|
||||
void NetworkServerUpdateCompanyPassworded(CompanyID company_id, bool passworded)
|
||||
{
|
||||
if (NetworkCompanyIsPassworded(company_id) == passworded) return;
|
||||
|
||||
SetWindowClassesDirty(WC_COMPANY);
|
||||
|
||||
NetworkAdminCompanyUpdate(Company::GetIfValid(company_id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the tid-bits of moving a client from one company to another.
|
||||
* @param client_id id of the client we want to move.
|
||||
|
||||
Reference in New Issue
Block a user