Skip to content

Commit 46d6930

Browse files
author
MarcoFalke
committed
Merge #16659: refactoring: Remove unused includes
084e17c Remove unused includes (practicalswift) Pull request description: As requested by MarcoFalke in bitcoin/bitcoin#16273 (comment): This PR removes unused includes. Please note that in contrast to #16273 I'm limiting the scope to the trivial cases of pure removals (i.e. no includes added) to make reviewing easier. I'm seeking "Concept ACK":s for this obviously non-urgent minor cleanup. Rationale: * Avoids unnecessary re-compiles in case of header changes. * Makes reasoning about code dependencies easier. * Reduces compile-time memory usage. * Reduces compilation time. * Warm fuzzy feeling of being lean :-) ACKs for top commit: ryanofsky: Code review ACK 084e17c. PR only removes include lines and it still compiles. In the worst case someone might have to explicitly add an include later for something now included implicitly. But maybe some effort was taken to avoid this, and it wouldn't be a tragedy anyway. Tree-SHA512: 89de56edc6ceea4696e9579bccff10c80080821685b9fb4e8c5ef593b6e43cf662f358788701bb09f84867693f66b2e4db035b92b522a0a775f50b7ecffd6a6d
2 parents c34b886 + 084e17c commit 46d6930

File tree

119 files changed

+0
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+0
-159
lines changed

src/arith_uint256.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <uint256.h>
99
#include <crypto/common.h>
1010

11-
#include <stdio.h>
12-
#include <string.h>
1311

1412
template <unsigned int BITS>
1513
base_uint<BITS>::base_uint(const std::string& str)

src/arith_uint256.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
#ifndef BITCOIN_ARITH_UINT256_H
77
#define BITCOIN_ARITH_UINT256_H
88

9-
#include <assert.h>
109
#include <cstring>
1110
#include <limits>
1211
#include <stdexcept>
1312
#include <stdint.h>
1413
#include <string>
15-
#include <vector>
1614

1715
class uint256;
1816

src/bench/base58.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <array>
1010
#include <vector>
11-
#include <string>
1211

1312

1413
static void Base58Encode(benchmark::State& state)

src/bench/bench.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define BITCOIN_BENCH_BENCH_H
77

88
#include <functional>
9-
#include <limits>
109
#include <map>
1110
#include <string>
1211
#include <vector>

src/bench/block_assemble.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <validation.h>
1111

1212

13-
#include <list>
1413
#include <vector>
1514

1615
static void AssembleBlock(benchmark::State& state)

src/bench/chacha20.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <iostream>
65

76
#include <bench/bench.h>
87
#include <crypto/chacha20.h>

src/bench/chacha_poly_aead.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <iostream>
65

76
#include <bench/bench.h>
87
#include <crypto/chacha_poly_aead.h>

src/bench/crypto_hash.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <iostream>
65

76
#include <bench/bench.h>
87
#include <hash.h>

src/bench/duplicate_inputs.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44

55
#include <bench/bench.h>
66
#include <chainparams.h>
7-
#include <coins.h>
87
#include <consensus/merkle.h>
98
#include <consensus/validation.h>
109
#include <pow.h>
1110
#include <txmempool.h>
1211
#include <validation.h>
1312

14-
#include <list>
15-
#include <vector>
1613

1714

1815
static void DuplicateInputs(benchmark::State& state)

src/bench/lockedpool.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <support/lockedpool.h>
88

9-
#include <iostream>
109
#include <vector>
1110

1211
#define ASIZE 2048

0 commit comments

Comments
 (0)