diff --git a/src/Components/Modules/Download.cpp b/src/Components/Modules/Download.cpp index 9283045e..9e3d0bc9 100644 --- a/src/Components/Modules/Download.cpp +++ b/src/Components/Modules/Download.cpp @@ -1,5 +1,4 @@ #include -#include "GSC/Script.hpp" #include @@ -715,9 +714,6 @@ namespace Components Dvar::Register("sv_wwwDownload", false, Game::DVAR_NONE, "Set to true to enable downloading maps/mods from an external server."); Dvar::Register("sv_wwwBaseUrl", "", Game::DVAR_NONE, "Set to the base url for the external map download."); }, Scheduler::Pipeline::MAIN); - - Script::AddFunction("HttpGet", Script::ShowDeprecationWarning); - Script::AddFunction("HttpCancel", Script::ShowDeprecationWarning); } Download::~Download() diff --git a/src/Components/Modules/GSC/Script.cpp b/src/Components/Modules/GSC/Script.cpp index ae4e6723..45bbc432 100644 --- a/src/Components/Modules/GSC/Script.cpp +++ b/src/Components/Modules/GSC/Script.cpp @@ -18,14 +18,6 @@ namespace Components std::unordered_map Script::ScriptMainHandles; std::unordered_map Script::ScriptInitHandles; - void Script::ShowDeprecationWarning() - { - Toast::Show("cardicon_gumby", "WARNING!", "You are using deprecated HttpGet/HttpCancel GSC function.", 2048); - Logger::Print(Game::CON_CHANNEL_SCRIPT, "*** DEPRECATION WARNING ***\n"); - Logger::PrintError(Game::CON_CHANNEL_ERROR, "Attempted to execute deprecated built-in HttpGet/HttpCancel! These functions have been deemed unsafe and are scheduled for removal. Please update your mod!\n"); - Logger::Print(Game::CON_CHANNEL_SCRIPT, "***************************\n"); - } - void Script::FunctionError() { const auto* funcName = Game::SL_ConvertToString(FunctionName); diff --git a/src/Components/Modules/GSC/Script.hpp b/src/Components/Modules/GSC/Script.hpp index bf850257..8c4742ba 100644 --- a/src/Components/Modules/GSC/Script.hpp +++ b/src/Components/Modules/GSC/Script.hpp @@ -14,8 +14,6 @@ namespace Components static const char* GetCodePosForParam(int index); - static void ShowDeprecationWarning(); - // Probably a macro 'originally' but this is fine static Game::gentity_s* Scr_GetPlayerEntity(Game::scr_entref_t entref) { diff --git a/src/Components/Modules/Voice.cpp b/src/Components/Modules/Voice.cpp index 5308ebba..1629656f 100644 --- a/src/Components/Modules/Voice.cpp +++ b/src/Components/Modules/Voice.cpp @@ -1,5 +1,4 @@ #include -#include "Game/Engine/LargeLocal.hpp" namespace Components {