mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 03:02:37 +02:00
Merge #16129: refactor: Remove unused includes
67f4e9c522Include core_io.h from core_read.cpp (practicalswift)eca9767673Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
This commit is contained in:
@@ -4,13 +4,11 @@
|
||||
|
||||
#include <attributes.h>
|
||||
#include <coins.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/setup_common.h>
|
||||
#include <uint256.h>
|
||||
#include <undo.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <keystore.h>
|
||||
#include <net.h>
|
||||
#include <net_processing.h>
|
||||
#include <pow.h>
|
||||
#include <script/sign.h>
|
||||
#include <serialize.h>
|
||||
#include <util/system.h>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <consensus/consensus.h>
|
||||
#include <consensus/merkle.h>
|
||||
#include <consensus/tx_verify.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <miner.h>
|
||||
#include <policy/policy.h>
|
||||
#include <pubkey.h>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <script/script_error.h>
|
||||
#include <script/interpreter.h>
|
||||
#include <script/sign.h>
|
||||
#include <script/ismine.h>
|
||||
#include <uint256.h>
|
||||
#include <test/setup_common.h>
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include <core_io.h>
|
||||
#include <init.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <key_io.h>
|
||||
#include <netbase.h>
|
||||
|
||||
#include <test/setup_common.h>
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <consensus/tx_verify.h>
|
||||
#include <core_io.h>
|
||||
#include <key.h>
|
||||
#include <keystore.h>
|
||||
#include <validation.h>
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <rpc/server.h>
|
||||
#include <script/sigcache.h>
|
||||
#include <streams.h>
|
||||
#include <ui_interface.h>
|
||||
#include <util/validation.h>
|
||||
#include <validation.h>
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
//
|
||||
#include <test/setup_common.h>
|
||||
#include <torcontrol.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <test/setup_common.h>
|
||||
#include <util/system.h>
|
||||
#include <util/time.h>
|
||||
#include <validation.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
||||
@@ -13,9 +13,7 @@
|
||||
#include <script/sign.h>
|
||||
#include <test/setup_common.h>
|
||||
#include <util/time.h>
|
||||
#include <core_io.h>
|
||||
#include <keystore.h>
|
||||
#include <policy/policy.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
||||
@@ -6,14 +6,11 @@
|
||||
|
||||
#include <chainparams.h>
|
||||
#include <consensus/merkle.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <key_io.h>
|
||||
#include <miner.h>
|
||||
#include <outputtype.h>
|
||||
#include <pow.h>
|
||||
#include <scheduler.h>
|
||||
#include <script/standard.h>
|
||||
#include <txdb.h>
|
||||
#include <validation.h>
|
||||
#include <validationinterface.h>
|
||||
#ifdef ENABLE_WALLET
|
||||
|
||||
Reference in New Issue
Block a user