Browse Source

Remove unnecessary forward class declarations in header files

0.15
practicalswift 7 years ago
parent
commit
4087d9ea7c
  1. 2
      src/httprpc.h
  2. 2
      src/miner.h
  3. 1
      src/net.h
  4. 2
      src/qt/addressbookpage.h
  5. 2
      src/qt/bitcoingui.h
  6. 3
      src/qt/clientmodel.h
  7. 1
      src/qt/coincontroldialog.h
  8. 1
      src/qt/receivecoinsdialog.h
  9. 1
      src/qt/sendcoinsdialog.h
  10. 1
      src/qt/utilitydialog.h
  11. 3
      src/rpc/blockchain.h
  12. 3
      src/rpc/server.h
  13. 1
      src/txmempool.h
  14. 2
      src/ui_interface.h
  15. 2
      src/validation.h
  16. 2
      src/wallet/crypter.h

2
src/httprpc.h

@ -8,8 +8,6 @@ @@ -8,8 +8,6 @@
#include <string>
#include <map>
class HTTPRequest;
/** Start HTTP RPC subsystem.
* Precondition; HTTP and RPC has been started.
*/

2
src/miner.h

@ -16,9 +16,7 @@ @@ -16,9 +16,7 @@
class CBlockIndex;
class CChainParams;
class CReserveKey;
class CScript;
class CWallet;
namespace Consensus { struct Params; };

1
src/net.h

@ -101,7 +101,6 @@ struct AddedNodeInfo @@ -101,7 +101,6 @@ struct AddedNodeInfo
bool fInbound;
};
class CTransaction;
class CNodeStats;
class CClientUIInterface;

2
src/qt/addressbookpage.h

@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
#include <QDialog>
class AddressTableModel;
class OptionsModel;
class PlatformStyle;
namespace Ui {
@ -20,7 +19,6 @@ class QItemSelection; @@ -20,7 +19,6 @@ class QItemSelection;
class QMenu;
class QModelIndex;
class QSortFilterProxyModel;
class QTableView;
QT_END_NAMESPACE
/** Widget that shows a list of sending or receiving addresses.

2
src/qt/bitcoingui.h

@ -31,8 +31,6 @@ class WalletModel; @@ -31,8 +31,6 @@ class WalletModel;
class HelpMessageDialog;
class ModalOverlay;
class CWallet;
QT_BEGIN_NAMESPACE
class QAction;
class QProgressBar;

3
src/qt/clientmodel.h

@ -10,13 +10,10 @@ @@ -10,13 +10,10 @@
#include <atomic>
class AddressTableModel;
class BanTableModel;
class OptionsModel;
class PeerTableModel;
class TransactionTableModel;
class CWallet;
class CBlockIndex;
QT_BEGIN_NAMESPACE

1
src/qt/coincontroldialog.h

@ -20,7 +20,6 @@ class PlatformStyle; @@ -20,7 +20,6 @@ class PlatformStyle;
class WalletModel;
class CCoinControl;
class CTxMemPool;
namespace Ui {
class CoinControlDialog;

1
src/qt/receivecoinsdialog.h

@ -15,7 +15,6 @@ @@ -15,7 +15,6 @@
#include <QPoint>
#include <QVariant>
class OptionsModel;
class PlatformStyle;
class WalletModel;

1
src/qt/sendcoinsdialog.h

@ -13,7 +13,6 @@ @@ -13,7 +13,6 @@
#include <QTimer>
class ClientModel;
class OptionsModel;
class PlatformStyle;
class SendCoinsEntry;
class SendCoinsRecipient;

1
src/qt/utilitydialog.h

@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
#include <QObject>
class BitcoinGUI;
class ClientModel;
namespace Ui {
class HelpMessageDialog;

3
src/rpc/blockchain.h

@ -7,9 +7,6 @@ @@ -7,9 +7,6 @@
class CBlock;
class CBlockIndex;
class CScript;
class CTransaction;
class uint256;
class UniValue;
/**

3
src/rpc/server.h

@ -28,9 +28,6 @@ namespace RPCServer @@ -28,9 +28,6 @@ namespace RPCServer
void OnPreCommand(std::function<void (const CRPCCommand&)> slot);
}
class CBlockIndex;
class CNetAddr;
/** Wrapper for UniValue::VType, which includes typeAny:
* Used to denote don't care type. Only used by RPCTypeCheckObj */
struct UniValueType {

1
src/txmempool.h

@ -28,7 +28,6 @@ @@ -28,7 +28,6 @@
#include <boost/signals2/signal.hpp>
class CAutoFile;
class CBlockIndex;
/** Fake height value used in Coin to signify they are only in the memory pool (since 0.8) */

2
src/ui_interface.h

@ -12,9 +12,7 @@ @@ -12,9 +12,7 @@
#include <boost/signals2/last_value.hpp>
#include <boost/signals2/signal.hpp>
class CBasicKeyStore;
class CWallet;
class uint256;
class CBlockIndex;
/** General change type (added, updated, removed). */

2
src/validation.h

@ -32,7 +32,6 @@ @@ -32,7 +32,6 @@
class CBlockIndex;
class CBlockTreeDB;
class CBloomFilter;
class CChainParams;
class CCoinsViewDB;
class CInv;
@ -40,7 +39,6 @@ class CConnman; @@ -40,7 +39,6 @@ class CConnman;
class CScriptCheck;
class CBlockPolicyEstimator;
class CTxMemPool;
class CValidationInterface;
class CValidationState;
struct ChainTxData;

2
src/wallet/crypter.h

@ -9,8 +9,6 @@ @@ -9,8 +9,6 @@
#include "serialize.h"
#include "support/allocators/secure.h"
class uint256;
const unsigned int WALLET_CRYPTO_KEY_SIZE = 32;
const unsigned int WALLET_CRYPTO_SALT_SIZE = 8;
const unsigned int WALLET_CRYPTO_IV_SIZE = 16;

Loading…
Cancel
Save