From bb5f0f88946a9532d859cc43a88a5ec0009f2e62 Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Wed, 15 Feb 2023 01:40:02 +0300 Subject: [PATCH] Cleanup unused or not defined functions --- src/engine/graphics.h | 1 - src/game/server/gamecontext.cpp | 21 --------------------- src/game/server/gamecontext.h | 3 --- 3 files changed, 25 deletions(-) diff --git a/src/engine/graphics.h b/src/engine/graphics.h index 58f4d9fdd..b7623e217 100644 --- a/src/engine/graphics.h +++ b/src/engine/graphics.h @@ -533,7 +533,6 @@ public: virtual int WindowOpen() = 0; }; -extern IEngineGraphics *CreateEngineGraphics(); extern IEngineGraphics *CreateEngineGraphicsThreaded(); #endif diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index b104c8790..5877a8ef6 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -3868,27 +3868,6 @@ const char *CGameContext::NetVersion() const { return GAME_NETVERSION; } IGameServer *CreateGameServer() { return new CGameContext; } -bool CGameContext::PlayerCollision() -{ - float Temp; - m_Tuning.Get("player_collision", &Temp); - return Temp != 0.0f; -} - -bool CGameContext::PlayerHooking() -{ - float Temp; - m_Tuning.Get("player_hooking", &Temp); - return Temp != 0.0f; -} - -float CGameContext::PlayerJetpack() -{ - float Temp; - m_Tuning.Get("player_jetpack", &Temp); - return Temp; -} - void CGameContext::OnSetAuthed(int ClientID, int Level) { if(m_apPlayers[ClientID]) diff --git a/src/game/server/gamecontext.h b/src/game/server/gamecontext.h index 03652dcae..2de504e07 100644 --- a/src/game/server/gamecontext.h +++ b/src/game/server/gamecontext.h @@ -514,9 +514,6 @@ public: void SendRecord(int ClientID); void OnSetAuthed(int ClientID, int Level) override; - virtual bool PlayerCollision(); - virtual bool PlayerHooking(); - virtual float PlayerJetpack(); void ResetTuning(); };