Skip to content

Commit 71a8dbe

Browse files
committed
refactor: Remove defunct attributes.h includes
Since the removal of NODISCARD in 81d5af4, the only attributes def is LIFETIMEBOUND, and it's included in many more places that it is used. This removes all includes which do not have an associated use of LIFETIMEBOUND, and adds it to the following files, due to their use of the same: * src/validationinterface.h * src/script/standard.h
1 parent 640eb77 commit 71a8dbe

File tree

16 files changed

+2
-14
lines changed

16 files changed

+2
-14
lines changed

src/base58.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef BITCOIN_BASE58_H
1515
#define BITCOIN_BASE58_H
1616

17-
#include <attributes.h>
1817
#include <span.h>
1918

2019
#include <string>

src/core_io.h

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

88
#include <consensus/amount.h>
9-
#include <attributes.h>
109

1110
#include <string>
1211
#include <vector>

src/hash.h

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

9-
#include <attributes.h>
109
#include <crypto/common.h>
1110
#include <crypto/ripemd160.h>
1211
#include <crypto/sha256.h>

src/init.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
#include <vector>
8787

8888
#ifndef WIN32
89-
#include <attributes.h>
9089
#include <cerrno>
9190
#include <signal.h>
9291
#include <sys/stat.h>

src/netaddress.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <config/bitcoin-config.h>
1010
#endif
1111

12-
#include <attributes.h>
1312
#include <compat.h>
1413
#include <crypto/siphash.h>
1514
#include <prevector.h>

src/node/transaction.h

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

8-
#include <attributes.h>
98
#include <policy/feerate.h>
109
#include <primitives/transaction.h>
1110
#include <util/error.h>

src/outputtype.h

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

9-
#include <attributes.h>
109
#include <script/signingprovider.h>
1110
#include <script/standard.h>
1211

src/psbt.h

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

8-
#include <attributes.h>
98
#include <node/transaction.h>
109
#include <policy/feerate.h>
1110
#include <primitives/transaction.h>

src/script/standard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef BITCOIN_SCRIPT_STANDARD_H
77
#define BITCOIN_SCRIPT_STANDARD_H
88

9+
#include <attributes.h>
910
#include <pubkey.h>
1011
#include <script/interpreter.h>
1112
#include <uint256.h>

src/test/coins_tests.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 <attributes.h>
65
#include <clientversion.h>
76
#include <coins.h>
87
#include <script/standard.h>

0 commit comments

Comments
 (0)