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);