removed the unused DefaultExtension variant taking a char *.

This commit is contained in:
Christoph Oelckers 2018-12-20 12:40:38 +01:00
parent b0d8a813f9
commit e05cedfc0d
2 changed files with 0 additions and 28 deletions

View file

@ -195,33 +195,6 @@ bool DirEntryExists(const char *pathname, bool *isdir)
return res;
}
//==========================================================================
//
// DefaultExtension -- char array version
//
// Appends the extension to a pathname if it does not already have one.
//
//==========================================================================
void DefaultExtension (char *path, const char *extension)
{
char *src;
//
// if path doesn't have a .EXT, append extension
// (extension should include the .)
//
src = path + strlen(path) - 1;
while (src != path && !IsSeperator(*src))
{
if (*src == '.')
return; // it has an extension
src--;
}
strcat (path, extension);
}
//==========================================================================
//
// DefaultExtension -- FString version

View file

@ -27,7 +27,6 @@ extern FString progdir;
void FixPathSeperator (char *path);
static void inline FixPathSeperator (FString &path) { path.ReplaceChars('\\', '/'); }
void DefaultExtension (char *path, const char *extension);
void DefaultExtension (FString &path, const char *extension);
FString ExtractFilePath (const char *path);