From 7c7cd24a82282fa31d05968224fd38502c46a93c Mon Sep 17 00:00:00 2001 From: FutureRave Date: Tue, 25 Jan 2022 18:07:31 +0000 Subject: [PATCH] Remove unused resource consuming code --- src/Components/Modules/QuickPatch.cpp | 9 +-------- src/Components/Modules/QuickPatch.hpp | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index edaafa42..eecc8dad 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -2,7 +2,6 @@ namespace Components { - int QuickPatch::FrameTime = 0; Dvar::Var QuickPatch::r_customAspectRatio; void QuickPatch::UnlockStats() @@ -433,15 +432,9 @@ namespace Components jmp ebx } } - + QuickPatch::QuickPatch() { - QuickPatch::FrameTime = 0; - Scheduler::OnFrame([]() - { - QuickPatch::FrameTime = Game::Sys_Milliseconds(); - }); - // quit_hard Command::Add("quit_hard", [](Command::Params*) { diff --git a/src/Components/Modules/QuickPatch.hpp b/src/Components/Modules/QuickPatch.hpp index 6b13a5a1..de070be5 100644 --- a/src/Components/Modules/QuickPatch.hpp +++ b/src/Components/Modules/QuickPatch.hpp @@ -11,11 +11,8 @@ namespace Components bool unitTest() override; static void UnlockStats(); - static int GetFrameTime() { return FrameTime; } private: - static int FrameTime; - static void SelectStringTableEntryInDvarStub(); static int SVCanReplaceServerCommand(Game::client_t *client, const char *cmd);