Skip to content

Commit 99be644

Browse files
Remove redundant unused variables
1 parent 66ed242 commit 99be644

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

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++;

0 commit comments

Comments
 (0)