From 8072f9053603ab12e5e0bc6096864034b348a1d5 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Tue, 20 Jan 2015 11:53:46 +0100 Subject: [PATCH] Remove use of UTIL_StringToLowwer --- dlls/cstrike/cstrike/CstrikeHacks.cpp | 3 --- dlls/cstrike/cstrike/CstrikeUtils.cpp | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/dlls/cstrike/cstrike/CstrikeHacks.cpp b/dlls/cstrike/cstrike/CstrikeHacks.cpp index 7f789be9..094e88d5 100644 --- a/dlls/cstrike/cstrike/CstrikeHacks.cpp +++ b/dlls/cstrike/cstrike/CstrikeHacks.cpp @@ -90,9 +90,6 @@ DETOUR_DECL_STATIC1(C_ClientCommand, void, edict_t*, pEdict) // void ClientComma // to be used in OnBuy* forwards. if ((ForwardOnBuyAttempt != -1 || ForwardOnBuy != -1) && command && *command) { - // Just for safety. - command = UTIL_StringToLower((char *)command); - int itemId = 0; // Handling buy via menu. diff --git a/dlls/cstrike/cstrike/CstrikeUtils.cpp b/dlls/cstrike/cstrike/CstrikeUtils.cpp index d65b81a1..6892cbd7 100644 --- a/dlls/cstrike/cstrike/CstrikeUtils.cpp +++ b/dlls/cstrike/cstrike/CstrikeUtils.cpp @@ -121,13 +121,3 @@ bool UTIL_CheckForPublic(const char *publicname) return false; } -char *UTIL_StringToLower(char *str) -{ - char *p; - for (p = str; *p != '\0'; ++p) - { - *p = tolower(*p); - } - - return str; -}