aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorMichael Ford <fanquake@gmail.com>2015-05-18 17:11:06 +0800
committerMichael Ford <fanquake@gmail.com>2015-05-18 17:11:06 +0800
commit08d9373e2faa2220b9417f8d8a59dc51000e823d (patch)
treeb38e21beca088d2f49570b021c5baeed531d6ef7 /src/wallet
parent26e08a16a6fb64b535d10f5d459183092deefa50 (diff)
downloadbitcoin-08d9373e2faa2220b9417f8d8a59dc51000e823d.tar.xz
Remove unused code from wallet and validation interface
Fixes #6109
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp12
-rw-r--r--src/wallet/wallet.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 3396a3a188..9e4964552e 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -775,18 +775,6 @@ void CWallet::SyncTransaction(const CTransaction& tx, const CBlock* pblock)
}
}
-void CWallet::EraseFromWallet(const uint256 &hash)
-{
- if (!fFileBacked)
- return;
- {
- LOCK(cs_wallet);
- if (mapWallet.erase(hash))
- CWalletDB(strWalletFile).EraseTx(hash);
- }
- return;
-}
-
isminetype CWallet::IsMine(const CTxIn &txin) const
{
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b0da92cfd1..5c99b87cea 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -615,7 +615,6 @@ public:
bool AddToWallet(const CWalletTx& wtxIn, bool fFromLoadWallet, CWalletDB* pwalletdb);
void SyncTransaction(const CTransaction& tx, const CBlock* pblock);
bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate);
- void EraseFromWallet(const uint256 &hash);
int ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate = false);
void ReacceptWalletTransactions();
void ResendWalletTransactions(int64_t nBestBlockTime);