Skip to content

Conversation

@brunoerg
Copy link
Contributor

There is no need to assign self.next_block to variables if we're not using its return value. Most cases touched here, we're reassigning it right after with the value from self.update_block.

@fanquake fanquake added the Tests label Nov 15, 2022
@brunoerg brunoerg force-pushed the 2022-11-unused-feature-block-test branch from 289d2eb to 741c215 Compare November 17, 2022 13:37
@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 17, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK fanquake

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@aureleoules
Copy link
Contributor

For reference, @fanquake suggested tweaking vulture to detect these unused variables. I couldn't make it work though.
#25707 (comment)

@fanquake
Copy link
Member

fanquake commented Feb 8, 2023

ACK. Seems fine. @MarcoFalke any thoughts? Otherwise we should probably just close.

@maflcko maflcko merged commit 51d51d3 into bitcoin:master Feb 8, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 8, 2023
741c215 test: remove unused vars in `feature_block` (brunoerg)

Pull request description:

  There is no need to assign `self.next_block` to variables if we're not using its return value. Most cases touched here, we're reassigning it right after with the value from `self.update_block`.

Top commit has no ACKs.

Tree-SHA512: 25bbea2a09f38c3a3483fa363f024d2a8edd06a00cccc93cef99e489b9a3485d58bbd6a1ed2dddc00f1cebec7e63aed8ad95701a2645ce20a0db9b69573c20a7
@bitcoin bitcoin locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants