Remove unused function network_close

This commit is contained in:
ZehMatt committed 2021-08-17 06:33:50 +03:00
1 parent 0960413927
commit 4ece997ff3
3 files changed
+2 -10

No files matched your search

-8
View File
@@ -3214,11 +3214,6 @@ void NetworkBase::Client_Handle_GAMEINFO([[maybe_unused]] NetworkConnection& con
network_chat_show_server_greeting();
}
void network_close()
{
OpenRCT2::GetContext()->GetNetwork().Close();
}
void network_reconnect()
{
OpenRCT2::GetContext()->GetNetwork().Reconnect();
@@ -4214,9 +4209,6 @@ void network_send_chat(const char* text, const std::vector<uint8_t>& playerIds)
void network_send_password(const std::string& password)
{
}
void network_close()
{
}
void network_reconnect()
{
}
-1
View File
@@ -35,7 +35,6 @@ enum class ModifyGroupType : uint8_t;
enum class PermissionState : uint8_t;
enum class NetworkPermission : uint32_t;
void network_close();
void network_reconnect();
void network_shutdown_client();
int32_t network_begin_client(const std::string& host, int32_t port);
+2 -1
View File
@@ -23,6 +23,7 @@
#include "../interface/Viewport.h"
#include "../interface/Window.h"
#include "../localisation/Localisation.h"
#include "../network/NetworkBase.h"
#include "../network/network.h"
#include "../scenario/Scenario.h"
#include "../scenario/ScenarioRepository.h"
@@ -124,7 +125,7 @@ void TitleScreen::Load()
gScreenAge = 0;
gCurrentLoadedPath = "";
network_close();
GetContext()->GetNetwork().Close();
OpenRCT2::Audio::StopAll();
GetContext()->GetGameState()->InitAll(150);
viewport_init_all();