From 57be66d30eca30febe4d28e4d1549cd4f17e3b38 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 24 Aug 2016 17:05:12 +0200 Subject: [PATCH] [test] Remove unused code Zcash: left createArgs() as we still have rpc_wallet_tests which uses it. --- src/test/base58_tests.cpp | 3 --- src/test/pmt_tests.cpp | 1 - src/test/util_tests.cpp | 9 ++------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp index 0531aaadf..c099a461e 100644 --- a/src/test/base58_tests.cpp +++ b/src/test/base58_tests.cpp @@ -121,7 +121,6 @@ public: BOOST_AUTO_TEST_CASE(base58_keys_valid_parse) { UniValue tests = read_json(std::string(json_tests::base58_keys_valid, json_tests::base58_keys_valid + sizeof(json_tests::base58_keys_valid))); - std::vector result; CBitcoinSecret secret; CTxDestination destination; SelectParams(CBaseChainParams::MAIN); @@ -177,7 +176,6 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_parse) BOOST_AUTO_TEST_CASE(base58_keys_valid_gen) { UniValue tests = read_json(std::string(json_tests::base58_keys_valid, json_tests::base58_keys_valid + sizeof(json_tests::base58_keys_valid))); - std::vector result; for (size_t idx = 0; idx < tests.size(); idx++) { UniValue test = tests[idx]; @@ -239,7 +237,6 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen) BOOST_AUTO_TEST_CASE(base58_keys_invalid) { UniValue tests = read_json(std::string(json_tests::base58_keys_invalid, json_tests::base58_keys_invalid + sizeof(json_tests::base58_keys_invalid))); // Negative testcases - std::vector result; CBitcoinSecret secret; CTxDestination destination; diff --git a/src/test/pmt_tests.cpp b/src/test/pmt_tests.cpp index f6d06d680..3975dff2e 100644 --- a/src/test/pmt_tests.cpp +++ b/src/test/pmt_tests.cpp @@ -120,7 +120,6 @@ BOOST_AUTO_TEST_CASE(pmt_malleability) std::vector vMatch = boost::assign::list_of(false)(false)(false)(false)(false)(false)(false)(false)(false)(true)(true)(false); CPartialMerkleTree tree(vTxid, vMatch); - std::vector vTxid2; BOOST_CHECK(tree.ExtractMatches(vTxid).IsNull()); } diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 6eb5ce563..0fcdd6530 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -234,11 +234,7 @@ BOOST_AUTO_TEST_CASE(util_IsHex) BOOST_AUTO_TEST_CASE(util_seed_insecure_rand) { - int i; - int count=0; - seed_insecure_rand(true); - for (int mod=2;mod<11;mod++) { int mask = 1; @@ -247,10 +243,9 @@ BOOST_AUTO_TEST_CASE(util_seed_insecure_rand) //mask is 2^ceil(log2(mod))-1 while(mask