From a675e4add88df0e8e28a4d052603381cd0e389f2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 12 Aug 2023 10:28:18 +0200 Subject: [PATCH] - removed unused ReplaceString function. --- src/common/utility/cmdlib.cpp | 19 ------------------- src/common/utility/cmdlib.h | 1 - 2 files changed, 20 deletions(-) diff --git a/src/common/utility/cmdlib.cpp b/src/common/utility/cmdlib.cpp index 02ab1895911..a3b2ef4f5d1 100644 --- a/src/common/utility/cmdlib.cpp +++ b/src/common/utility/cmdlib.cpp @@ -122,25 +122,6 @@ char *copystring (const char *s) return b; } -//========================================================================== -// -// ReplaceString -// -// Do not use in new code. -// -//========================================================================== - -void ReplaceString (char **ptr, const char *str) -{ - if (*ptr) - { - if (*ptr == str) - return; - delete[] *ptr; - } - *ptr = copystring (str); -} - /* ============================================================================= diff --git a/src/common/utility/cmdlib.h b/src/common/utility/cmdlib.h index 392d0f46db4..b319056e8be 100644 --- a/src/common/utility/cmdlib.h +++ b/src/common/utility/cmdlib.h @@ -54,7 +54,6 @@ struct FScriptPosition; bool IsNum (const char *str); // [RH] added char *copystring(const char *s); -void ReplaceString (char **ptr, const char *str); bool CheckWildcards (const char *pattern, const char *text);