Skip to content

Commit

Permalink
- removed unused ReplaceString function.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 12, 2023
1 parent 16cefb7 commit a675e4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions src/common/utility/cmdlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
=============================================================================
Expand Down
1 change: 0 additions & 1 deletion src/common/utility/cmdlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a675e4a

Please sign in to comment.