diff options
author | sfan5 <sfan5@live.de> | 2022-06-01 15:03:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 15:03:52 +0200 |
commit | aa095d9525bce099a500b40b9b0e2736227485d7 (patch) | |
tree | 33cbbb7c413e479333a22a6214286874ff2e1247 /source/Irrlicht/CFileSystem.cpp | |
parent | 128cf1696c2803e12ebbdd3ee034e0c9eea90fae (diff) | |
download | irrlicht-aa095d9525bce099a500b40b9b0e2736227485d7.tar.xz |
Remove more dead code (#108)
Diffstat (limited to 'source/Irrlicht/CFileSystem.cpp')
-rw-r--r-- | source/Irrlicht/CFileSystem.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/source/Irrlicht/CFileSystem.cpp b/source/Irrlicht/CFileSystem.cpp index 2adbe63..45e8680 100644 --- a/source/Irrlicht/CFileSystem.cpp +++ b/source/Irrlicht/CFileSystem.cpp @@ -8,7 +8,6 @@ #include "IReadFile.h"
#include "IWriteFile.h"
#include "CZipReader.h"
-#include "CMountPointReader.h"
#include "CFileList.h"
#include "stdio.h"
#include "os.h"
@@ -55,26 +54,6 @@ CFileSystem::CFileSystem() //! reset current working directory
getWorkingDirectory();
-#ifdef __IRR_COMPILE_WITH_PAK_ARCHIVE_LOADER_
- ArchiveLoader.push_back(new CArchiveLoaderPAK(this));
-#endif
-
-#ifdef __IRR_COMPILE_WITH_NPK_ARCHIVE_LOADER_
- ArchiveLoader.push_back(new CArchiveLoaderNPK(this));
-#endif
-
-#ifdef __IRR_COMPILE_WITH_TAR_ARCHIVE_LOADER_
- ArchiveLoader.push_back(new CArchiveLoaderTAR(this));
-#endif
-
-#ifdef __IRR_COMPILE_WITH_WAD_ARCHIVE_LOADER_
- ArchiveLoader.push_back(new CArchiveLoaderWAD(this));
-#endif
-
-#ifdef __IRR_COMPILE_WITH_MOUNT_ARCHIVE_LOADER_
- ArchiveLoader.push_back(new CArchiveLoaderMount(this));
-#endif
-
#ifdef __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
ArchiveLoader.push_back(new CArchiveLoaderZIP(this));
#endif
@@ -219,8 +198,6 @@ bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase, bool ret = false;
// see if archive is already added
- if (changeArchivePassword(filename, password, retArchive))
- return true;
s32 i;
@@ -316,29 +293,6 @@ bool CFileSystem::addFileArchive(const io::path& filename, bool ignoreCase, return ret;
}
-// don't expose!
-bool CFileSystem::changeArchivePassword(const path& filename,
- const core::stringc& password,
- IFileArchive** archive)
-{
- for (s32 idx = 0; idx < (s32)FileArchives.size(); ++idx)
- {
- // TODO: This should go into a path normalization method
- // We need to check for directory names with trailing slash and without
- const path absPath = getAbsolutePath(filename);
- const path arcPath = FileArchives[idx]->getFileList()->getPath();
- if ((absPath == arcPath) || ((absPath+_IRR_TEXT("/")) == arcPath))
- {
- if (password.size())
- FileArchives[idx]->Password=password;
- if (archive)
- *archive = FileArchives[idx];
- return true;
- }
- }
-
- return false;
-}
bool CFileSystem::addFileArchive(IReadFile* file, bool ignoreCase,
bool ignorePaths, E_FILE_ARCHIVE_TYPE archiveType,
@@ -349,9 +303,6 @@ bool CFileSystem::addFileArchive(IReadFile* file, bool ignoreCase, if (file)
{
- if (changeArchivePassword(file->getFileName(), password, retArchive))
- return true;
-
IFileArchive* archive = 0;
s32 i;
|