Skip to content

Commit 0762f57

Browse files
committed
Suggested changes to headers cleanup
1 parent b643ce4 commit 0762f57

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

src/db.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ class CAddrMan;
2121
struct CBlockLocator;
2222
class CDiskBlockIndex;
2323
class COutPoint;
24-
class CWallet;
2524

2625
extern unsigned int nWalletDBUpdated;
2726

2827
void ThreadFlushWalletDB(const std::string& strWalletFile);
29-
bool BackupWallet(const CWallet& wallet, const std::string& strDest);
3028

3129

3230
class CDBEnv

src/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
#include "chainparams.h"
1111
#include "checkpoints.h"
1212
#include "checkqueue.h"
13-
#include "db.h"
1413
#include "init.h"
1514
#include "net.h"
1615
#include "txdb.h"
1716
#include "txmempool.h"
1817
#include "ui_interface.h"
1918
#include "util.h"
20-
#include "wallet.h"
2119

2220
#include <inttypes.h>
2321
#include <stdint.h>
@@ -33,9 +31,6 @@ using namespace boost;
3331
// Global state
3432
//
3533

36-
CCriticalSection cs_setpwalletRegistered;
37-
set<CWallet*> setpwalletRegistered;
38-
3934
CCriticalSection cs_main;
4035

4136
CTxMemPool mempool;

src/main.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,9 @@
2828
#include <utility>
2929
#include <vector>
3030

31-
class CBlock;
3231
class CBlockIndex;
3332
class CBloomFilter;
3433
class CInv;
35-
class CKeyItem;
36-
class CNode;
37-
class CNodeSignals;
38-
class CReserveKey;
39-
class CWallet;
4034

4135
/** The maximum allowed size for a serialized block, in bytes (network rule) */
4236
static const unsigned int MAX_BLOCK_SIZE = 1000000;
@@ -103,11 +97,9 @@ extern int64_t nTransactionFee;
10397
static const uint64_t nMinDiskSpace = 52428800;
10498

10599

106-
class CReserveKey;
107100
class CCoinsDB;
108101
class CBlockTreeDB;
109102
struct CDiskBlockPos;
110-
class CCoins;
111103
class CTxUndo;
112104
class CCoinsView;
113105
class CCoinsViewCache;

src/walletdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class CBlockLocator;
2020
class CKeyPool;
2121
class CMasterKey;
2222
class CScript;
23+
class CWallet;
2324
class CWalletTx;
2425
class uint160;
2526
class uint256;

0 commit comments

Comments
 (0)