From c0dd37e16eb0a7ce24d2ffbebed4f5c65bf91c0f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 19 Feb 2017 01:14:31 +0100 Subject: [PATCH] - ncopystring is not needed anymore. --- src/cmdlib.cpp | 17 ----------------- src/cmdlib.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/cmdlib.cpp b/src/cmdlib.cpp index f7fb94510a..471c02cc8a 100644 --- a/src/cmdlib.cpp +++ b/src/cmdlib.cpp @@ -95,23 +95,6 @@ char *copystring (const char *s) return b; } -//============================================================================ -// -// ncopystring -// -// If the string has no content, returns NULL. Otherwise, returns a copy. -// -//============================================================================ - -char *ncopystring (const char *string) -{ - if (string == NULL || string[0] == 0) - { - return NULL; - } - return copystring (string); -} - //========================================================================== // // ReplaceString diff --git a/src/cmdlib.h b/src/cmdlib.h index 6e9fcd622f..7af4e630b5 100644 --- a/src/cmdlib.h +++ b/src/cmdlib.h @@ -38,7 +38,6 @@ int ParseHex(const char *str, FScriptPosition *sc = nullptr); bool IsNum (const char *str); // [RH] added char *copystring(const char *s); -char *ncopystring(const char *s); void ReplaceString (char **ptr, const char *str); bool CheckWildcards (const char *pattern, const char *text);