summaryrefslogtreecommitdiff
path: root/src/unittests/fs/virtfs/virtfs1_enumerate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/fs/virtfs/virtfs1_enumerate.cc')
-rw-r--r--src/unittests/fs/virtfs/virtfs1_enumerate.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/unittests/fs/virtfs/virtfs1_enumerate.cc b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
index f2caa0171..1cbc5239b 100644
--- a/src/unittests/fs/virtfs/virtfs1_enumerate.cc
+++ b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
@@ -22,20 +22,12 @@
#include "fs/files.h"
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
@@ -80,30 +72,6 @@ static bool inList(const VirtFs::List *const list,
return false;
}
-static bool inList(StringVect list,
- const std::string &name)
-{
- FOR_EACH (StringVectCIter, it, list)
- {
- if (*it == name)
- return true;
- }
- return false;
-}
-
-static bool inList(StringVect list,
- const std::string &dir,
- const std::string &name)
-{
- const std::string path = pathJoin(dir, name);
- FOR_EACH (StringVectCIter, it, list)
- {
- if (*it == path)
- return true;
- }
- return false;
-}
-
TEST_CASE("VirtFs1 enumerateFiles1", "")
{
VirtFs::init(".");