mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
removed the unused DefaultExtension variant taking a char *.
This commit is contained in:
parent
b0d8a813f9
commit
e05cedfc0d
2 changed files with 0 additions and 28 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue