From 0a1eccef927f36675cf104f11b54e270fa067c9f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Dec 2023 15:03:00 +0100 Subject: [PATCH] remove unused FileSystem::AddExternalFile method. --- src/common/filesystem/include/fs_filesystem.h | 1 - src/common/filesystem/source/filesystem.cpp | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/src/common/filesystem/include/fs_filesystem.h b/src/common/filesystem/include/fs_filesystem.h index 89a20638b..0be66a9d3 100644 --- a/src/common/filesystem/include/fs_filesystem.h +++ b/src/common/filesystem/include/fs_filesystem.h @@ -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(); diff --git a/src/common/filesystem/source/filesystem.cpp b/src/common/filesystem/source/filesystem.cpp index e265f5cba..bbaa389d9 100644 --- a/src/common/filesystem/source/filesystem.cpp +++ b/src/common/filesystem/source/filesystem.cpp @@ -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