Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included
a720b92
Remove includes in .cpp files for things the corresponding .h file already included (practicalswift)
Pull request description:
Remove includes in .cpp files for things the corresponding .h file already included.
Example case:
* `addrdb.cpp` includes `addrdb.h` and `fs.h`
* `addrdb.h` includes `fs.h`
Then remove the direct inclusion of `fs.h` in `addrman.cpp` and rely on the indirect inclusion of `fs.h` via the included `addrdb.h`.
In line with the header include guideline (see #10575).
Tree-SHA512: 8704b9de3011a4c234db336a39f7d2c139e741cf0f7aef08a5d3e05197e1e18286b863fdab25ae9638af4ff86b3d52e5cab9eed66bfa2476063aa5c79f9b0346
This commit is contained in:
commit
5d132e8b97
37 changed files with 0 additions and 76 deletions
|
@ -8,7 +8,6 @@
|
|||
#include <addrman.h>
|
||||
#include <chainparams.h>
|
||||
#include <clientversion.h>
|
||||
#include <fs.h>
|
||||
#include <hash.h>
|
||||
#include <random.h>
|
||||
#include <streams.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <chainparams.h>
|
||||
#include <reverse_iterator.h>
|
||||
#include <validation.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <tinyformat.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* Name of client reported in the 'version' message. Report the same name
|
||||
|
|
|
@ -5,11 +5,8 @@
|
|||
#include <coins.h>
|
||||
|
||||
#include <consensus/consensus.h>
|
||||
#include <memusage.h>
|
||||
#include <random.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
bool CCoinsView::GetCoin(const COutPoint &outpoint, Coin &coin) const { return false; }
|
||||
uint256 CCoinsView::GetBestBlock() const { return uint256(); }
|
||||
std::vector<uint256> CCoinsView::GetHeadBlocks() const { return std::vector<uint256>(); }
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
#include <dbwrapper.h>
|
||||
|
||||
#include <fs.h>
|
||||
#include <util.h>
|
||||
#include <random.h>
|
||||
|
||||
#include <leveldb/cache.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <arith_uint256.h>
|
||||
#include <crypto/common.h>
|
||||
#include <crypto/hmac_sha512.h>
|
||||
#include <pubkey.h>
|
||||
#include <random.h>
|
||||
|
||||
#include <secp256k1.h>
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
#include <keystore.h>
|
||||
|
||||
#include <key.h>
|
||||
#include <pubkey.h>
|
||||
#include <util.h>
|
||||
|
||||
bool CKeyStore::AddKey(const CKey &key) {
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <primitives/transaction.h>
|
||||
#include <script/standard.h>
|
||||
#include <timedata.h>
|
||||
#include <txmempool.h>
|
||||
#include <util.h>
|
||||
#include <utilmoneystr.h>
|
||||
#include <validationinterface.h>
|
||||
|
|
|
@ -9,13 +9,11 @@
|
|||
|
||||
#include <net.h>
|
||||
|
||||
#include <addrman.h>
|
||||
#include <chainparams.h>
|
||||
#include <clientversion.h>
|
||||
#include <consensus/consensus.h>
|
||||
#include <crypto/common.h>
|
||||
#include <crypto/sha256.h>
|
||||
#include <hash.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <netbase.h>
|
||||
#include <scheduler.h>
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <init.h>
|
||||
#include <validation.h>
|
||||
#include <merkleblock.h>
|
||||
#include <net.h>
|
||||
#include <netmessagemaker.h>
|
||||
#include <netbase.h>
|
||||
#include <policy/fees.h>
|
||||
|
@ -30,7 +29,6 @@
|
|||
#include <util.h>
|
||||
#include <utilmoneystr.h>
|
||||
#include <utilstrencodings.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
#if defined(NDEBUG)
|
||||
# error "Bitcoin cannot be compiled without assertions."
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <netaddress.h>
|
||||
#include <hash.h>
|
||||
#include <utilstrencodings.h>
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <netbase.h>
|
||||
|
||||
#include <hash.h>
|
||||
|
|
|
@ -6,10 +6,8 @@
|
|||
#include <policy/fees.h>
|
||||
#include <policy/policy.h>
|
||||
|
||||
#include <amount.h>
|
||||
#include <clientversion.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <random.h>
|
||||
#include <streams.h>
|
||||
#include <txmempool.h>
|
||||
#include <util.h>
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <qt/bitcoingui.h>
|
||||
|
||||
#include <qt/bitcoinunits.h>
|
||||
|
|
|
@ -28,9 +28,7 @@
|
|||
#include <QFlags>
|
||||
#include <QIcon>
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
#include <QTreeWidget>
|
||||
#include <QTreeWidgetItem>
|
||||
|
||||
QList<CAmount> CoinControlDialog::payAmounts;
|
||||
CCoinControl* CoinControlDialog::coinControl = new CCoinControl();
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <qt/qvalidatedlineedit.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
#include <fs.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <init.h>
|
||||
#include <policy/policy.h>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <QApplication>
|
||||
#include <QByteArray>
|
||||
#include <QIcon>
|
||||
#include <QImageWriter>
|
||||
#include <QMessageBox>
|
||||
#include <QMetaType>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include <qt/bitcoinunits.h>
|
||||
#include <qt/guiutil.h>
|
||||
|
||||
#include <amount.h>
|
||||
#include <init.h>
|
||||
#include <validation.h> // For DEFAULT_SCRIPTCHECK_THREADS
|
||||
#include <net.h>
|
||||
|
|
|
@ -8,10 +8,8 @@
|
|||
|
||||
#include <QApplication>
|
||||
#include <QColor>
|
||||
#include <QIcon>
|
||||
#include <QImage>
|
||||
#include <QPalette>
|
||||
#include <QPixmap>
|
||||
|
||||
static const struct {
|
||||
const char *platformId;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <qt/addressbookpage.h>
|
||||
#include <qt/addresstablemodel.h>
|
||||
#include <qt/bitcoinunits.h>
|
||||
#include <qt/guiutil.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
#include <qt/platformstyle.h>
|
||||
#include <qt/receiverequestdialog.h>
|
||||
|
@ -17,7 +16,6 @@
|
|||
|
||||
#include <QAction>
|
||||
#include <QCursor>
|
||||
#include <QItemSelection>
|
||||
#include <QMessageBox>
|
||||
#include <QScrollBar>
|
||||
#include <QTextDocument>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <qt/guiconstants.h>
|
||||
#include <qt/guiutil.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
#include <QClipboard>
|
||||
#include <QDrag>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
#include <qt/bantablemodel.h>
|
||||
#include <qt/clientmodel.h>
|
||||
#include <qt/guiutil.h>
|
||||
#include <qt/platformstyle.h>
|
||||
#include <chainparams.h>
|
||||
#include <netbase.h>
|
||||
|
@ -35,7 +34,6 @@
|
|||
#include <QScrollBar>
|
||||
#include <QSettings>
|
||||
#include <QSignalMapper>
|
||||
#include <QThread>
|
||||
#include <QTime>
|
||||
#include <QTimer>
|
||||
#include <QStringList>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <qt/optionsmodel.h>
|
||||
#include <qt/platformstyle.h>
|
||||
#include <qt/sendcoinsentry.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
#include <base58.h>
|
||||
#include <chainparams.h>
|
||||
|
@ -25,11 +24,9 @@
|
|||
#include <wallet/fees.h>
|
||||
|
||||
#include <QFontMetrics>
|
||||
#include <QMessageBox>
|
||||
#include <QScrollBar>
|
||||
#include <QSettings>
|
||||
#include <QTextDocument>
|
||||
#include <QTimer>
|
||||
|
||||
static const std::array<int, 9> confTargets = { {2, 4, 6, 12, 24, 48, 144, 504, 1008} };
|
||||
int getConfTargetForIndex(int index) {
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <qt/guiutil.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
#include <qt/platformstyle.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
// Earliest date that can be represented (far in the past)
|
||||
const QDateTime TransactionFilterProxy::MIN_DATE = QDateTime::fromTime_t(0);
|
||||
// Last date that can be represented (far in the future)
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <qt/bitcoinunits.h>
|
||||
#include <qt/csvmodelwriter.h>
|
||||
#include <qt/editaddressdialog.h>
|
||||
#include <qt/guiutil.h>
|
||||
#include <qt/optionsmodel.h>
|
||||
#include <qt/platformstyle.h>
|
||||
#include <qt/sendcoinsdialog.h>
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include <set>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
class CRPCConvertParam
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <memory>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
unsigned int ParseConfirmTarget(const UniValue& value)
|
||||
{
|
||||
int target = value.get_int();
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <utiltime.h>
|
||||
#include <version.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <fstream>
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
#include <util.h>
|
||||
#include <utilstrencodings.h>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/signals2/signal.hpp>
|
||||
#include <boost/algorithm/string/case_conv.hpp> // for to_upper()
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include <script/interpreter.h>
|
||||
|
||||
#include <primitives/transaction.h>
|
||||
#include <crypto/ripemd160.h>
|
||||
#include <crypto/sha1.h>
|
||||
#include <crypto/sha256.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <key.h>
|
||||
#include <keystore.h>
|
||||
#include <script/script.h>
|
||||
#include <script/standard.h>
|
||||
#include <script/sign.h>
|
||||
|
||||
|
||||
|
|
|
@ -8,15 +8,9 @@
|
|||
#include <consensus/consensus.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <crypto/sha256.h>
|
||||
#include <fs.h>
|
||||
#include <key.h>
|
||||
#include <validation.h>
|
||||
#include <miner.h>
|
||||
#include <net_processing.h>
|
||||
#include <pubkey.h>
|
||||
#include <random.h>
|
||||
#include <txdb.h>
|
||||
#include <txmempool.h>
|
||||
#include <ui_interface.h>
|
||||
#include <streams.h>
|
||||
#include <rpc/server.h>
|
||||
|
|
|
@ -3,18 +3,12 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <util.h>
|
||||
|
||||
#include <chainparamsbase.h>
|
||||
#include <fs.h>
|
||||
#include <random.h>
|
||||
#include <serialize.h>
|
||||
#include <utilstrencodings.h>
|
||||
#include <utiltime.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <consensus/tx_verify.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <cuckoocache.h>
|
||||
#include <fs.h>
|
||||
#include <hash.h>
|
||||
#include <init.h>
|
||||
#include <policy/fees.h>
|
||||
|
@ -39,10 +38,8 @@
|
|||
#include <utilmoneystr.h>
|
||||
#include <utilstrencodings.h>
|
||||
#include <validationinterface.h>
|
||||
#include <versionbits.h>
|
||||
#include <warnings.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <sstream>
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <wallet/db.h>
|
||||
|
||||
#include <addrman.h>
|
||||
#include <fs.h>
|
||||
#include <hash.h>
|
||||
#include <protocol.h>
|
||||
#include <util.h>
|
||||
|
|
|
@ -23,12 +23,10 @@
|
|||
#include <primitives/block.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <script/script.h>
|
||||
#include <script/sign.h>
|
||||
#include <scheduler.h>
|
||||
#include <timedata.h>
|
||||
#include <txmempool.h>
|
||||
#include <util.h>
|
||||
#include <ui_interface.h>
|
||||
#include <utilmoneystr.h>
|
||||
#include <wallet/fees.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue