remove unused FileSystem::AddExternalFile method.

This commit is contained in:
Christoph Oelckers 2023-12-10 15:03:00 +01:00
parent 21acb9d467
commit 0a1eccef92
2 changed files with 0 additions and 16 deletions

View file

@ -170,7 +170,6 @@ public:
}
void AddLump(FResourceLump* lump);
int AddExternalFile(const char *filename);
int AddFromBuffer(const char* name, const char* type, char* data, int size, int id, int flags);
FileReader* GetFileReader(int wadnum); // Gets a FileReader object to the entire WAD
void InitHashChains();

View file

@ -301,21 +301,6 @@ void FileSystem::AddLump(FResourceLump *lump)
FileInfo.back().SetFromLump(-1, lump, stringpool);
}
//-----------------------------------------------------------------------
//
// Adds an external file to the lump list but not to the hash chains
// It's just a simple means to assign a lump number to some file so that
// the texture manager can read from it.
//
//-----------------------------------------------------------------------
int FileSystem::AddExternalFile(const char *filename)
{
FResourceLump *lump = new FExternalLump(filename, -1, stringpool);
AddLump(lump);
return (int)FileInfo.size() - 1; // later
}
//==========================================================================
//
// AddFromBuffer