mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-24 07:51:24 +02:00
Remove unused variables
This commit is contained in:
parent
23b2a68df5
commit
fa09ec83f3
@ -400,7 +400,6 @@ void CoinControlDialog::updateLabels(CCoinControl& m_coin_control, WalletModel *
|
|||||||
// nPayAmount
|
// nPayAmount
|
||||||
CAmount nPayAmount = 0;
|
CAmount nPayAmount = 0;
|
||||||
bool fDust = false;
|
bool fDust = false;
|
||||||
CMutableTransaction txDummy;
|
|
||||||
for (const CAmount &amount : CoinControlDialog::payAmounts)
|
for (const CAmount &amount : CoinControlDialog::payAmounts)
|
||||||
{
|
{
|
||||||
nPayAmount += amount;
|
nPayAmount += amount;
|
||||||
@ -409,7 +408,6 @@ void CoinControlDialog::updateLabels(CCoinControl& m_coin_control, WalletModel *
|
|||||||
{
|
{
|
||||||
// Assumes a p2pkh script size
|
// Assumes a p2pkh script size
|
||||||
CTxOut txout(amount, CScript() << std::vector<unsigned char>(24, 0));
|
CTxOut txout(amount, CScript() << std::vector<unsigned char>(24, 0));
|
||||||
txDummy.vout.push_back(txout);
|
|
||||||
fDust |= IsDust(txout, model->node().getDustRelayFee());
|
fDust |= IsDust(txout, model->node().getDustRelayFee());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,6 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
|
|||||||
if(mine)
|
if(mine)
|
||||||
{
|
{
|
||||||
TransactionRecord sub(hash, nTime);
|
TransactionRecord sub(hash, nTime);
|
||||||
CTxDestination address;
|
|
||||||
sub.idx = i; // vout index
|
sub.idx = i; // vout index
|
||||||
sub.credit = txout.nValue;
|
sub.credit = txout.nValue;
|
||||||
sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
|
sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
|
||||||
|
@ -746,7 +746,6 @@ void CWallet::SetSpentKeyState(WalletBatch& batch, const uint256& hash, unsigned
|
|||||||
bool CWallet::IsSpentKey(const uint256& hash, unsigned int n) const
|
bool CWallet::IsSpentKey(const uint256& hash, unsigned int n) const
|
||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet);
|
AssertLockHeld(cs_wallet);
|
||||||
CTxDestination dst;
|
|
||||||
const CWalletTx* srctx = GetWalletTx(hash);
|
const CWalletTx* srctx = GetWalletTx(hash);
|
||||||
if (srctx) {
|
if (srctx) {
|
||||||
assert(srctx->tx->vout.size() > n);
|
assert(srctx->tx->vout.size() > n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user