From 084e17cebd424b8e8ced674bc810eef4e6ee5d3b Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 31 Jul 2019 10:03:55 +0000 Subject: [PATCH] Remove unused includes --- src/arith_uint256.cpp | 2 -- src/arith_uint256.h | 2 -- src/bench/base58.cpp | 1 - src/bench/bench.h | 1 - src/bench/block_assemble.cpp | 1 - src/bench/chacha20.cpp | 1 - src/bench/chacha_poly_aead.cpp | 1 - src/bench/crypto_hash.cpp | 1 - src/bench/duplicate_inputs.cpp | 3 --- src/bench/lockedpool.cpp | 1 - src/bench/mempool_eviction.cpp | 2 -- src/bench/poly1305.cpp | 1 - src/bench/rollingbloom.cpp | 1 - src/bench/rpc_blockchain.cpp | 1 - src/bench/rpc_mempool.cpp | 2 -- src/bitcoin-cli.cpp | 1 - src/bitcoin-tx.cpp | 1 - src/bitcoin-wallet.cpp | 2 -- src/bitcoind.cpp | 1 - src/blockencodings.h | 1 - src/compressor.cpp | 1 - src/consensus/merkle.h | 2 -- src/consensus/params.h | 2 -- src/crypto/aes.cpp | 1 - src/crypto/chacha_poly_aead.cpp | 1 - src/crypto/sha256.cpp | 1 - src/crypto/sha256_shani.cpp | 1 - src/dbwrapper.h | 1 - src/dummywallet.cpp | 1 - src/httprpc.cpp | 2 -- src/httprpc.h | 2 -- src/httpserver.cpp | 1 - src/httpserver.h | 1 - src/index/base.h | 1 - src/interfaces/chain.cpp | 2 -- src/interfaces/node.cpp | 3 --- src/interfaces/wallet.cpp | 2 -- src/key_io.cpp | 1 - src/miner.cpp | 2 -- src/net.cpp | 3 --- src/net_processing.cpp | 1 - src/netaddress.h | 1 - src/node/coinstats.cpp | 2 -- src/node/transaction.cpp | 1 - src/node/transaction.h | 1 - src/noui.cpp | 2 -- src/policy/fees.cpp | 1 - src/prevector.h | 1 - src/primitives/block.cpp | 1 - src/protocol.h | 1 - src/psbt.cpp | 1 - src/qt/bantablemodel.cpp | 2 -- src/qt/bitcoin.cpp | 1 - src/qt/coincontroldialog.cpp | 1 - src/qt/peertablemodel.cpp | 1 - src/qt/signverifymessagedialog.cpp | 1 - src/qt/splashscreen.cpp | 1 - src/qt/test/paymentservertests.cpp | 1 - src/qt/transactiondesc.cpp | 1 - src/qt/walletframe.cpp | 1 - src/qt/walletmodel.h | 1 - src/qt/walletmodeltransaction.h | 1 - src/random.cpp | 2 -- src/rest.cpp | 1 - src/rpc/blockchain.cpp | 1 - src/rpc/client.cpp | 1 - src/rpc/misc.cpp | 1 - src/rpc/net.cpp | 1 - src/rpc/rawtransaction.cpp | 2 -- src/rpc/server.cpp | 2 -- src/rpc/server.h | 2 -- src/script/interpreter.h | 1 - src/script/keyorigin.h | 1 - src/script/sign.h | 1 - src/script/standard.h | 1 - src/serialize.h | 1 - src/streams.h | 2 -- src/sync.cpp | 2 -- src/test/bip32_tests.cpp | 1 - src/test/compress_tests.cpp | 1 - src/test/key_properties.cpp | 1 - src/test/policyestimator_tests.cpp | 1 - src/test/pow_tests.cpp | 1 - src/test/skiplist_tests.cpp | 1 - src/test/streams_tests.cpp | 1 - src/test/txindex_tests.cpp | 1 - src/threadinterrupt.h | 1 - src/torcontrol.h | 1 - src/txdb.h | 1 - src/txmempool.h | 1 - src/ui_interface.h | 1 - src/uint256.cpp | 1 - src/uint256.h | 1 - src/util/moneystr.cpp | 1 - src/util/moneystr.h | 1 - src/util/string.h | 1 - src/util/system.cpp | 1 - src/util/threadnames.cpp | 1 - src/util/translation.h | 1 - src/validation.cpp | 3 --- src/validation.h | 2 -- src/validationinterface.cpp | 2 -- src/wallet/crypter.cpp | 3 --- src/wallet/crypter.h | 1 - src/wallet/db.h | 2 -- src/wallet/fees.cpp | 1 - src/wallet/init.cpp | 1 - src/wallet/ismine.cpp | 1 - src/wallet/psbtwallet.h | 2 -- src/wallet/rpcdump.cpp | 1 - src/wallet/rpcwallet.cpp | 2 -- src/wallet/wallet.cpp | 1 - src/wallet/wallet.h | 1 - src/wallet/walletdb.h | 3 --- src/wallet/wallettool.h | 1 - src/warnings.h | 1 - src/zmq/zmqconfig.h | 2 -- src/zmq/zmqnotificationinterface.cpp | 1 - src/zmq/zmqnotificationinterface.h | 2 -- 119 files changed, 159 deletions(-) diff --git a/src/arith_uint256.cpp b/src/arith_uint256.cpp index be145a0e63c7a..1111f27771ce5 100644 --- a/src/arith_uint256.cpp +++ b/src/arith_uint256.cpp @@ -8,8 +8,6 @@ #include #include -#include -#include template base_uint::base_uint(const std::string& str) diff --git a/src/arith_uint256.h b/src/arith_uint256.h index bd0360087d9ea..171135b01f7e9 100644 --- a/src/arith_uint256.h +++ b/src/arith_uint256.h @@ -6,13 +6,11 @@ #ifndef BITCOIN_ARITH_UINT256_H #define BITCOIN_ARITH_UINT256_H -#include #include #include #include #include #include -#include class uint256; diff --git a/src/bench/base58.cpp b/src/bench/base58.cpp index 0f4b52cf79bd7..40a7b5e320799 100644 --- a/src/bench/base58.cpp +++ b/src/bench/base58.cpp @@ -8,7 +8,6 @@ #include #include -#include static void Base58Encode(benchmark::State& state) diff --git a/src/bench/bench.h b/src/bench/bench.h index 35eeab3393341..3a8c487b9a2f9 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -6,7 +6,6 @@ #define BITCOIN_BENCH_BENCH_H #include -#include #include #include #include diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp index fb33c09ab24fb..157f936a95f22 100644 --- a/src/bench/block_assemble.cpp +++ b/src/bench/block_assemble.cpp @@ -10,7 +10,6 @@ #include -#include #include static void AssembleBlock(benchmark::State& state) diff --git a/src/bench/chacha20.cpp b/src/bench/chacha20.cpp index 030067aca5e18..f1b0a9a989925 100644 --- a/src/bench/chacha20.cpp +++ b/src/bench/chacha20.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include #include diff --git a/src/bench/chacha_poly_aead.cpp b/src/bench/chacha_poly_aead.cpp index f5f729749042a..a02a5315a470c 100644 --- a/src/bench/chacha_poly_aead.cpp +++ b/src/bench/chacha_poly_aead.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include #include diff --git a/src/bench/crypto_hash.cpp b/src/bench/crypto_hash.cpp index fb2bab9dee7a1..674753c191233 100644 --- a/src/bench/crypto_hash.cpp +++ b/src/bench/crypto_hash.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include #include diff --git a/src/bench/duplicate_inputs.cpp b/src/bench/duplicate_inputs.cpp index 2440341287fdc..6cfa3750d6076 100644 --- a/src/bench/duplicate_inputs.cpp +++ b/src/bench/duplicate_inputs.cpp @@ -4,15 +4,12 @@ #include #include -#include #include #include #include #include #include -#include -#include static void DuplicateInputs(benchmark::State& state) diff --git a/src/bench/lockedpool.cpp b/src/bench/lockedpool.cpp index 0712eab4bc2cf..0d9b1234009bd 100644 --- a/src/bench/lockedpool.cpp +++ b/src/bench/lockedpool.cpp @@ -6,7 +6,6 @@ #include -#include #include #define ASIZE 2048 diff --git a/src/bench/mempool_eviction.cpp b/src/bench/mempool_eviction.cpp index ac8a182358354..a2a21c673ba4a 100644 --- a/src/bench/mempool_eviction.cpp +++ b/src/bench/mempool_eviction.cpp @@ -6,8 +6,6 @@ #include #include -#include -#include static void AddTx(const CTransactionRef& tx, const CAmount& nFee, CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main, pool.cs) { diff --git a/src/bench/poly1305.cpp b/src/bench/poly1305.cpp index 16342d0fbe946..02e5fecc0def4 100644 --- a/src/bench/poly1305.cpp +++ b/src/bench/poly1305.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include #include diff --git a/src/bench/rollingbloom.cpp b/src/bench/rollingbloom.cpp index 4016530dacfb7..cffdb388f8735 100644 --- a/src/bench/rollingbloom.cpp +++ b/src/bench/rollingbloom.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include #include #include diff --git a/src/bench/rpc_blockchain.cpp b/src/bench/rpc_blockchain.cpp index 29e448fc43a1b..2fc6f116a43ac 100644 --- a/src/bench/rpc_blockchain.cpp +++ b/src/bench/rpc_blockchain.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include diff --git a/src/bench/rpc_mempool.cpp b/src/bench/rpc_mempool.cpp index b35a7440551f0..bf63cccf096d4 100644 --- a/src/bench/rpc_mempool.cpp +++ b/src/bench/rpc_mempool.cpp @@ -8,8 +8,6 @@ #include -#include -#include static void AddTx(const CTransactionRef& tx, const CAmount& fee, CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main, pool.cs) { diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 73773c4ec5ff5..8f6abb6f8b7e5 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include #include diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 88219f0d0f1a3..cabea610f3fa6 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include