Skip to content

Commit 62baa28

Browse files
author
MarcoFalke
committed
Merge #13691: Remove redundant variables, statements and forward declarations
3dee4cc Remove redundant statement (practicalswift) 99be644 Remove redundant unused variables (practicalswift) 66ed242 Remove redundant forward declaration (practicalswift) Pull request description: Remove redundant … * ~access modifiers,~ * forward declarations, * unused variables, * statements, and * ~return types from lambdas.~ Tree-SHA512: 328bb7d9c45398e44ecbee32095b6376879470dfddbc2180e037620d8390d524b51d7fda112fd58a078715e04432b24dd6998a2459f3550aa0498aa68de866d4
2 parents 59407fc + 3dee4cc commit 62baa28

File tree

6 files changed

+2
-8
lines changed

6 files changed

+2
-8
lines changed

src/qt/clientmodel.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include <QDebug>
2929
#include <QTimer>
3030

31-
class CBlockIndex;
32-
3331
static int64_t nLastHeaderTipUpdateNotification = 0;
3432
static int64_t nLastBlockTipUpdateNotification = 0;
3533

src/script/standard.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey>& keys)
324324

325325
CScript GetScriptForWitness(const CScript& redeemscript)
326326
{
327-
CScript ret;
328-
329327
txnouttype typ;
330328
std::vector<std::vector<unsigned char> > vSolutions;
331329
if (Solver(redeemscript, typ, vSolutions)) {

src/test/miner_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
209209
const CChainParams& chainparams = *chainParams;
210210
CScript scriptPubKey = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;
211211
std::unique_ptr<CBlockTemplate> pblocktemplate;
212-
CMutableTransaction tx,tx2;
212+
CMutableTransaction tx;
213213
CScript script;
214214
uint256 hash;
215215
TestMemPoolEntryHelper entry;

src/test/transaction_tests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ BOOST_AUTO_TEST_CASE(test_witness)
547547

548548
CTransactionRef output1, output2;
549549
CMutableTransaction input1, input2;
550-
SignatureData sigdata;
551550

552551
// Normal pay-to-compressed-pubkey.
553552
CreateCreditAndSpend(keystore, scriptPubkey1, output1, input1);

src/txmempool.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ void CTxMemPool::check(const CCoinsViewCache *pcoins) const
716716
while (!waitingOnDependants.empty()) {
717717
const CTxMemPoolEntry* entry = waitingOnDependants.front();
718718
waitingOnDependants.pop_front();
719-
CValidationState state;
720719
if (!mempoolDuplicate.HaveInputs(entry->GetTx())) {
721720
waitingOnDependants.push_back(entry);
722721
stepsSinceLastRemove++;

src/wallet/coinselection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ bool SelectCoinsBnB(std::vector<CInputCoin>& utxo_pool, const CAmount& target_va
115115
while (!curr_selection.empty() && !curr_selection.back()) {
116116
curr_selection.pop_back();
117117
curr_available_value += utxo_pool.at(curr_selection.size()).effective_value;
118-
};
118+
}
119119

120120
if (curr_selection.empty()) { // We have walked back to the first utxo and no branch is untraversed. All solutions searched
121121
break;

0 commit comments

Comments
 (0)