- got rid of the two copying variants of fileSystem.GetFileShortName.

This commit is contained in:
Christoph Oelckers 2023-08-19 21:10:07 +02:00
commit 25b7b18c3d
12 changed files with 22 additions and 67 deletions

View file

@ -1095,14 +1095,6 @@ bool FileSystem::CheckFileName (int lump, const char *name)
//
//==========================================================================
void FileSystem::GetFileShortName (char *to, int lump) const
{
if ((size_t)lump >= NumEntries)
*to = 0;
else
uppercopy (to, FileInfo[lump].shortName.String);
}
const char* FileSystem::GetFileShortName(int lump) const
{
if ((size_t)lump >= NumEntries)
@ -1111,16 +1103,6 @@ const char* FileSystem::GetFileShortName(int lump) const
return FileInfo[lump].shortName.String;
}
void FileSystem::GetFileShortName(FString &to, int lump) const
{
if ((size_t)lump >= NumEntries)
to = FString();
else {
to = FileInfo[lump].shortName.String;
to.ToUpper();
}
}
//==========================================================================
//
// FileSystem :: GetFileFullName