Merge pull request #176 from diamante0018/remove-bad-unused-code

[QuickPatch] Remove unused code consuming resources
This commit is contained in:
Dss0 2022-01-25 19:30:01 +01:00 committed by GitHub
commit 5dc2f48444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -2,7 +2,6 @@
namespace Components namespace Components
{ {
int QuickPatch::FrameTime = 0;
Dvar::Var QuickPatch::r_customAspectRatio; Dvar::Var QuickPatch::r_customAspectRatio;
void QuickPatch::UnlockStats() void QuickPatch::UnlockStats()
@ -436,12 +435,6 @@ namespace Components
QuickPatch::QuickPatch() QuickPatch::QuickPatch()
{ {
QuickPatch::FrameTime = 0;
Scheduler::OnFrame([]()
{
QuickPatch::FrameTime = Game::Sys_Milliseconds();
});
// quit_hard // quit_hard
Command::Add("quit_hard", [](Command::Params*) Command::Add("quit_hard", [](Command::Params*)
{ {

View File

@ -11,11 +11,8 @@ namespace Components
bool unitTest() override; bool unitTest() override;
static void UnlockStats(); static void UnlockStats();
static int GetFrameTime() { return FrameTime; }
private: private:
static int FrameTime;
static void SelectStringTableEntryInDvarStub(); static void SelectStringTableEntryInDvarStub();
static int SVCanReplaceServerCommand(Game::client_t *client, const char *cmd); static int SVCanReplaceServerCommand(Game::client_t *client, const char *cmd);