wallet: remove unused IsSpentKey(hash, index) method

This commit is contained in:
furszy
2022-04-27 11:08:53 -03:00
parent 4b83bf8dbc
commit cdf185ccfb
2 changed files with 1 additions and 11 deletions

View File

@@ -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);