From 62f77691f6437c633ea505d7e4a49bcb5a96af5b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Jul 2017 04:53:47 +0300 Subject: Remove extra headers. --- src/unittests/fs/virtfs/virtfs1_enumerate.cc | 32 ---------------------------- 1 file changed, 32 deletions(-) (limited to 'src/unittests/fs/virtfs/virtfs1_enumerate.cc') 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 -PRAGMA48(GCC diagnostic pop) #ifndef UNITTESTS_CATCH #include @@ -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("."); -- cgit v1.2.3-70-g09d2