From f5e3f241af190e487c0499dae0efc12e9ae2d202 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Sep 2017 21:24:59 +0300 Subject: Fix code style. --- src/unittests/fs/virtfs/throw.cc | 13 ------------- src/unittests/utils/stringutils.cc | 4 ---- 2 files changed, 17 deletions(-) (limited to 'src/unittests') diff --git a/src/unittests/fs/virtfs/throw.cc b/src/unittests/fs/virtfs/throw.cc index e2472f618..91298dfa1 100644 --- a/src/unittests/fs/virtfs/throw.cc +++ b/src/unittests/fs/virtfs/throw.cc @@ -107,11 +107,6 @@ TEST_CASE("throw VirtFs1 exists2", "") TEST_CASE("throw Zip readCompressedFile", "") { logger = new Logger(); - std::string name("data/test/test.zip"); - std::string prefix; - if (Files::existsLocal(name) == false) - prefix = "../"; - SECTION("empty") { REQUIRE_THROWS(VirtFs::ZipReader::readCompressedFile(nullptr)); @@ -123,10 +118,6 @@ TEST_CASE("throw Zip readCompressedFile", "") TEST_CASE("throw Zip readFile", "") { logger = new Logger(); - std::string name("data/test/test.zip"); - std::string prefix; - if (Files::existsLocal(name) == false) - prefix = "../"; SECTION("empty") { @@ -140,11 +131,7 @@ TEST_CASE("throw VirtFs1 unmount", "") { VirtFs::init("."); logger = new Logger(); - std::string name("data/test/test.zip"); - std::string prefix; const std::string sep = dirSeparator; - if (Files::existsLocal(name) == false) - prefix = "../"; SECTION("simple 1") { diff --git a/src/unittests/utils/stringutils.cc b/src/unittests/utils/stringutils.cc index 44bc4d13f..128b07078 100644 --- a/src/unittests/utils/stringutils.cc +++ b/src/unittests/utils/stringutils.cc @@ -1216,8 +1216,6 @@ TEST_CASE("stringuntils decodeLinkText", "") TEST_CASE("stringuntils isDigit", "") { - std::string str; - REQUIRE_FALSE(isDigit("")); REQUIRE(isDigit("1")); REQUIRE(isDigit("123")); @@ -1229,8 +1227,6 @@ TEST_CASE("stringuntils isDigit", "") TEST_CASE("stringuntils findAny", "") { - std::string str; - REQUIRE(findAny("test line", ",", 0) == std::string::npos); REQUIRE(findAny("test line", " ", 0) == 4U); REQUIRE(findAny("test, line", ", ", 0) == 4U); -- cgit v1.2.3-60-g2f50