diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-05 18:51:35 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-05 21:24:15 +0200 |
| commit | 12cdbabc26a58fe19b97a2e45a3d31ddc455bbc8 (patch) | |
| tree | a25539487577ac7d1840da28b497283e68cbad1d /src/wallet | |
| parent | Merge pull request #6238 (diff) | |
| parent | Remove unused code from wallet and validation interface (diff) | |
| download | discoin-12cdbabc26a58fe19b97a2e45a3d31ddc455bbc8.tar.xz discoin-12cdbabc26a58fe19b97a2e45a3d31ddc455bbc8.zip | |
Merge pull request #6152
08d9373 Remove unused code from wallet and validation interface (Michael Ford)
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/wallet.cpp | 12 | ||||
| -rw-r--r-- | src/wallet/wallet.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d376f42be..3f12d88e7 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -776,18 +776,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 2bedad3fc..9f3f08d11 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); |