Browse Source

Remove unnecessary forward class declarations in header files

0.15
practicalswift 8 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 @@
#include <string> #include <string>
#include <map> #include <map>
class HTTPRequest;
/** Start HTTP RPC subsystem. /** Start HTTP RPC subsystem.
* Precondition; HTTP and RPC has been started. * Precondition; HTTP and RPC has been started.
*/ */

2
src/miner.h

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

1
src/net.h

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

2
src/qt/addressbookpage.h

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

2
src/qt/bitcoingui.h

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

3
src/qt/clientmodel.h

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

1
src/qt/coincontroldialog.h

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

1
src/qt/receivecoinsdialog.h

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

1
src/qt/sendcoinsdialog.h

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

1
src/qt/utilitydialog.h

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

3
src/rpc/blockchain.h

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

3
src/rpc/server.h

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

1
src/txmempool.h

@ -28,7 +28,6 @@
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
class CAutoFile;
class CBlockIndex; class CBlockIndex;
/** Fake height value used in Coin to signify they are only in the memory pool (since 0.8) */ /** 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 @@
#include <boost/signals2/last_value.hpp> #include <boost/signals2/last_value.hpp>
#include <boost/signals2/signal.hpp> #include <boost/signals2/signal.hpp>
class CBasicKeyStore;
class CWallet; class CWallet;
class uint256;
class CBlockIndex; class CBlockIndex;
/** General change type (added, updated, removed). */ /** General change type (added, updated, removed). */

2
src/validation.h

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

2
src/wallet/crypter.h

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

Loading…
Cancel
Save