From 71a8dbe5da0ec2c17c448eb3303eb30615869813 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Sat, 21 May 2022 13:54:14 -0500 Subject: [PATCH] refactor: Remove defunct attributes.h includes Since the removal of NODISCARD in 81d5af42f4dba5b68a597536cad7f61894dc22a3, 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 --- src/base58.h | 1 - src/core_io.h | 1 - src/hash.h | 1 - src/init.cpp | 1 - src/netaddress.h | 1 - src/node/transaction.h | 1 - src/outputtype.h | 1 - src/psbt.h | 1 - src/script/standard.h | 1 + src/test/coins_tests.cpp | 1 - src/test/fuzz/util.h | 1 - src/util/bip32.h | 1 - src/util/moneystr.h | 1 - src/util/strencodings.h | 1 - src/util/system.h | 1 - src/validationinterface.cpp | 1 + 16 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/base58.h b/src/base58.h index 9ba5af73e05..d2a8d5e3bc4 100644 --- a/src/base58.h +++ b/src/base58.h @@ -14,7 +14,6 @@ #ifndef BITCOIN_BASE58_H #define BITCOIN_BASE58_H -#include #include #include diff --git a/src/core_io.h b/src/core_io.h index aa1381c374f..c91c8199d84 100644 --- a/src/core_io.h +++ b/src/core_io.h @@ -6,7 +6,6 @@ #define BITCOIN_CORE_IO_H #include -#include #include #include diff --git a/src/hash.h b/src/hash.h index 9f582842c1f..0ccef2105f8 100644 --- a/src/hash.h +++ b/src/hash.h @@ -6,7 +6,6 @@ #ifndef BITCOIN_HASH_H #define BITCOIN_HASH_H -#include #include #include #include diff --git a/src/init.cpp b/src/init.cpp index b1fe9151890..e436d5ea8e1 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -86,7 +86,6 @@ #include #ifndef WIN32 -#include #include #include #include diff --git a/src/netaddress.h b/src/netaddress.h index 77e6171054c..47ba0453344 100644 --- a/src/netaddress.h +++ b/src/netaddress.h @@ -9,7 +9,6 @@ #include #endif -#include #include #include #include diff --git a/src/node/transaction.h b/src/node/transaction.h index b7cf225636d..0604754a464 100644 --- a/src/node/transaction.h +++ b/src/node/transaction.h @@ -5,7 +5,6 @@ #ifndef BITCOIN_NODE_TRANSACTION_H #define BITCOIN_NODE_TRANSACTION_H -#include #include #include #include diff --git a/src/outputtype.h b/src/outputtype.h index 66fe489bb0a..6b4e6957601 100644 --- a/src/outputtype.h +++ b/src/outputtype.h @@ -6,7 +6,6 @@ #ifndef BITCOIN_OUTPUTTYPE_H #define BITCOIN_OUTPUTTYPE_H -#include #include