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_basic.cc | 13 ----------- src/unittests/fs/virtfs/virtfs1_enumerate.cc | 32 --------------------------- src/unittests/fs/virtfs/virtfs1_exists.cc | 12 ---------- src/unittests/fs/virtfs/virtfs1_getrealdir.cc | 10 --------- src/unittests/fs/virtfs/virtfs1_mount.cc | 9 -------- src/unittests/fs/virtfs/virtfs1_unmount.cc | 9 -------- src/unittests/fs/virtfs/virtfs2_unittest.cc | 13 ----------- 7 files changed, 98 deletions(-) (limited to 'src/unittests/fs') diff --git a/src/unittests/fs/virtfs/virtfs1_basic.cc b/src/unittests/fs/virtfs/virtfs1_basic.cc index 3d8b21877..73153df37 100644 --- a/src/unittests/fs/virtfs/virtfs1_basic.cc +++ b/src/unittests/fs/virtfs/virtfs1_basic.cc @@ -20,22 +20,9 @@ #include "unittests/unittests.h" -#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 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("."); diff --git a/src/unittests/fs/virtfs/virtfs1_exists.cc b/src/unittests/fs/virtfs/virtfs1_exists.cc index 310cb28ae..977572677 100644 --- a/src/unittests/fs/virtfs/virtfs1_exists.cc +++ b/src/unittests/fs/virtfs/virtfs1_exists.cc @@ -20,22 +20,10 @@ #include "unittests/unittests.h" -#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 diff --git a/src/unittests/fs/virtfs/virtfs1_getrealdir.cc b/src/unittests/fs/virtfs/virtfs1_getrealdir.cc index 7b2f7915c..ea0d3ccb0 100644 --- a/src/unittests/fs/virtfs/virtfs1_getrealdir.cc +++ b/src/unittests/fs/virtfs/virtfs1_getrealdir.cc @@ -22,20 +22,10 @@ #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 diff --git a/src/unittests/fs/virtfs/virtfs1_mount.cc b/src/unittests/fs/virtfs/virtfs1_mount.cc index 1174fe1a9..6b3a50e80 100644 --- a/src/unittests/fs/virtfs/virtfs1_mount.cc +++ b/src/unittests/fs/virtfs/virtfs1_mount.cc @@ -24,18 +24,9 @@ #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 diff --git a/src/unittests/fs/virtfs/virtfs1_unmount.cc b/src/unittests/fs/virtfs/virtfs1_unmount.cc index 549061f25..5e6815d5c 100644 --- a/src/unittests/fs/virtfs/virtfs1_unmount.cc +++ b/src/unittests/fs/virtfs/virtfs1_unmount.cc @@ -24,18 +24,9 @@ #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 diff --git a/src/unittests/fs/virtfs/virtfs2_unittest.cc b/src/unittests/fs/virtfs/virtfs2_unittest.cc index 86d932655..8e578cc71 100644 --- a/src/unittests/fs/virtfs/virtfs2_unittest.cc +++ b/src/unittests/fs/virtfs/virtfs2_unittest.cc @@ -22,10 +22,8 @@ #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" @@ -43,17 +41,6 @@ PRAGMA48(GCC diagnostic pop) #include "debug.h" -static bool inList(const VirtFs::List *const list, - const std::string &name) -{ - FOR_EACH (StringVectCIter, it, list->names) - { - if (*it == name) - return true; - } - return false; -} - static bool inList(StringVect list, const std::string &name) { -- cgit v1.2.3-70-g09d2