From 6687d73f20015db92ec32c71ad386241736b23e9 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Thu, 20 Jan 2022 18:21:37 +0000 Subject: [PATCH] Remove unused function --- src/Components/Modules/Bots.cpp | 5 ----- src/Components/Modules/Bots.hpp | 1 - 2 files changed, 6 deletions(-) diff --git a/src/Components/Modules/Bots.cpp b/src/Components/Modules/Bots.cpp index f74b0923..61da6e45 100644 --- a/src/Components/Modules/Bots.cpp +++ b/src/Components/Modules/Bots.cpp @@ -71,11 +71,6 @@ namespace Components { "9", 33554432 }, }; - bool Bots::IsValidClientNum(unsigned int cNum) - { - return (cNum >= 0) && (cNum < (unsigned int)*Game::svs_numclients); - } - void Bots::BuildConnectString(char* buffer, const char* connectString, int num, int, int protocol, int checksum, int statVer, int statStuff, int port) { static int botId = 0; diff --git a/src/Components/Modules/Bots.hpp b/src/Components/Modules/Bots.hpp index 83514f0f..fcf2c9df 100644 --- a/src/Components/Modules/Bots.hpp +++ b/src/Components/Modules/Bots.hpp @@ -7,7 +7,6 @@ namespace Components public: Bots(); ~Bots(); - static bool IsValidClientNum(unsigned int); private: static std::vector BotNames;