Skip to content

Commit fa09ec8

Browse files
author
MarcoFalke
committed
Remove unused variables
1 parent 23b2a68 commit fa09ec8

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

src/qt/coincontroldialog.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ void CoinControlDialog::updateLabels(CCoinControl& m_coin_control, WalletModel *
400400
// nPayAmount
401401
CAmount nPayAmount = 0;
402402
bool fDust = false;
403-
CMutableTransaction txDummy;
404403
for (const CAmount &amount : CoinControlDialog::payAmounts)
405404
{
406405
nPayAmount += amount;
@@ -409,7 +408,6 @@ void CoinControlDialog::updateLabels(CCoinControl& m_coin_control, WalletModel *
409408
{
410409
// Assumes a p2pkh script size
411410
CTxOut txout(amount, CScript() << std::vector<unsigned char>(24, 0));
412-
txDummy.vout.push_back(txout);
413411
fDust |= IsDust(txout, model->node().getDustRelayFee());
414412
}
415413
}

src/qt/transactionrecord.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
4747
if(mine)
4848
{
4949
TransactionRecord sub(hash, nTime);
50-
CTxDestination address;
5150
sub.idx = i; // vout index
5251
sub.credit = txout.nValue;
5352
sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;

src/wallet/wallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,6 @@ void CWallet::SetSpentKeyState(WalletBatch& batch, const uint256& hash, unsigned
746746
bool CWallet::IsSpentKey(const uint256& hash, unsigned int n) const
747747
{
748748
AssertLockHeld(cs_wallet);
749-
CTxDestination dst;
750749
const CWalletTx* srctx = GetWalletTx(hash);
751750
if (srctx) {
752751
assert(srctx->tx->vout.size() > n);

0 commit comments

Comments
 (0)