From 5c2f162da2e4a6785e6453a2cc89579702a64ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Thu, 25 Aug 2022 17:03:13 +0200 Subject: [PATCH] Remove unused `DemoRecorder_IsRecording` method --- src/engine/server.h | 1 - src/engine/server/server.cpp | 5 ----- src/engine/server/server.h | 1 - 3 files changed, 7 deletions(-) diff --git a/src/engine/server.h b/src/engine/server.h index 3dead98ca..4e25b3521 100644 --- a/src/engine/server.h +++ b/src/engine/server.h @@ -229,7 +229,6 @@ public: virtual void ChangeMap(const char *pMap) = 0; virtual void DemoRecorder_HandleAutoStart() = 0; - virtual bool DemoRecorder_IsRecording() = 0; // DDRace diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index d48152b02..432a81f3e 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -3252,11 +3252,6 @@ void CServer::DemoRecorder_HandleAutoStart() } } -bool CServer::DemoRecorder_IsRecording() -{ - return m_aDemoRecorder[MAX_CLIENTS].IsRecording(); -} - void CServer::SaveDemo(int ClientID, float Time) { if(IsRecording(ClientID)) diff --git a/src/engine/server/server.h b/src/engine/server/server.h index 7ba34816f..fe943614f 100644 --- a/src/engine/server/server.h +++ b/src/engine/server/server.h @@ -287,7 +287,6 @@ public: void Ban(int ClientID, int Seconds, const char *pReason) override; void DemoRecorder_HandleAutoStart() override; - bool DemoRecorder_IsRecording() override; //int Tick() int64_t TickStartTime(int Tick);