Remove includes in .cpp files for things the corresponding .h file already included

This commit is contained in:
practicalswift 2017-11-16 22:26:34 +01:00
parent 99bc0b428b
commit a720b928c8
37 changed files with 0 additions and 76 deletions

View File

@ -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>

View File

@ -8,7 +8,6 @@
#include <chainparams.h>
#include <reverse_iterator.h>
#include <validation.h>
#include <uint256.h>
#include <stdint.h>

View File

@ -6,7 +6,6 @@
#include <tinyformat.h>
#include <string>
/**
* Name of client reported in the 'version' message. Report the same name

View File

@ -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>(); }

View File

@ -4,8 +4,6 @@
#include <dbwrapper.h>
#include <fs.h>
#include <util.h>
#include <random.h>
#include <leveldb/cache.h>

View File

@ -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>

View File

@ -5,8 +5,6 @@
#include <keystore.h>
#include <key.h>
#include <pubkey.h>
#include <util.h>
bool CKeyStore::AddKey(const CKey &key) {

View File

@ -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>

View File

@ -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>

View File

@ -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."

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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();

View File

@ -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>

View File

@ -6,7 +6,6 @@
#include <QApplication>
#include <QByteArray>
#include <QIcon>
#include <QImageWriter>
#include <QMessageBox>
#include <QMetaType>

View File

@ -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>

View File

@ -8,10 +8,8 @@
#include <QApplication>
#include <QColor>
#include <QIcon>
#include <QImage>
#include <QPalette>
#include <QPixmap>
static const struct {
const char *platformId;

View File

@ -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>

View File

@ -9,7 +9,6 @@
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include <qt/optionsmodel.h>
#include <qt/walletmodel.h>
#include <QClipboard>
#include <QDrag>

View File

@ -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>

View File

@ -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) {

View File

@ -10,7 +10,6 @@
#include <qt/guiutil.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#include <qt/walletmodel.h>
#include <QApplication>
#include <QClipboard>

View File

@ -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)

View File

@ -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>

View File

@ -10,8 +10,6 @@
#include <set>
#include <stdint.h>
#include <univalue.h>
class CRPCConvertParam
{
public:

View File

@ -29,8 +29,6 @@
#include <memory>
#include <stdint.h>
#include <univalue.h>
unsigned int ParseConfirmTarget(const UniValue& value)
{
int target = value.get_int();

View File

@ -12,7 +12,6 @@
#include <utiltime.h>
#include <version.h>
#include <stdint.h>
#include <fstream>
/**

View File

@ -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()

View File

@ -5,7 +5,6 @@
#include <script/interpreter.h>
#include <primitives/transaction.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/sha256.h>

View File

@ -8,7 +8,6 @@
#include <key.h>
#include <keystore.h>
#include <script/script.h>
#include <script/standard.h>
#include <script/sign.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -6,7 +6,6 @@
#include <wallet/db.h>
#include <addrman.h>
#include <fs.h>
#include <hash.h>
#include <protocol.h>
#include <util.h>

View File

@ -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>