mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
wallet: remove unused IsSpentKey(hash, index) method
This commit is contained in:
@@ -906,15 +906,6 @@ void CWallet::SetSpentKeyState(WalletBatch& batch, const uint256& hash, unsigned
|
||||
}
|
||||
}
|
||||
|
||||
bool CWallet::IsSpentKey(const uint256& hash, unsigned int n) const
|
||||
{
|
||||
AssertLockHeld(cs_wallet);
|
||||
const CWalletTx* srctx = GetWalletTx(hash);
|
||||
if (!srctx) return false;
|
||||
assert(srctx->tx->vout.size() > n);
|
||||
return IsSpentKey(srctx->tx->vout[n].scriptPubKey);
|
||||
}
|
||||
|
||||
bool CWallet::IsSpentKey(const CScript& scriptPubKey) const
|
||||
{
|
||||
AssertLockHeld(cs_wallet);
|
||||
|
||||
Reference in New Issue
Block a user