1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 09:22:42 +01:00

Codechange: Remove empty destructor and use member init for ClientNetworkContentSocketHandler.

This commit is contained in:
Peter Nelson
2025-04-11 21:19:42 +01:00
committed by Peter Nelson
parent 20d83677eb
commit 3347919fb2
2 changed files with 8 additions and 30 deletions

View File

@@ -707,25 +707,6 @@ void ClientNetworkContentSocketHandler::OnReceiveData(std::unique_ptr<char[]> da
#undef check_and_terminate
}
/**
* Create a socket handler to handle the connection.
*/
ClientNetworkContentSocketHandler::ClientNetworkContentSocketHandler() :
NetworkContentSocketHandler(),
http_response_index(-2),
cur_file(std::nullopt),
cur_info(nullptr),
is_connecting(false),
is_cancelled(false)
{
this->last_activity = std::chrono::steady_clock::now();
}
/** Clear up the mess ;) */
ClientNetworkContentSocketHandler::~ClientNetworkContentSocketHandler()
{
}
/** Connect to the content server. */
class NetworkContentConnecter : public TCPConnecter {
public: