-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Remove redundant variables, statements and forward declarations #13691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'm unsure on 1d45dcd and dc0996f because they serve to help document the code. |
dc0996f
to
ea01d65
Compare
Agree with @Empact |
@Empact Thanks for the quick review! I've now excluded dc0996f15ab99c8307bf63efd339cad20ddcb562 from this PR – I see your point. Regarding 1d45dcd67dbb7319e9acd6dd36ce7106727cb18a, what does that add from a documentation viewpoint? |
@practicalswift the value is modest, but the declaration makes the default explicit, removing an otherwise-required unit of knowledge for the reader. Avoids the risk of an inappropriate expectation or assumption, particularly relevant since |
ea01d65
to
3dee4cc
Compare
@Empact I see your point. I've now excluded that commit. @Empact @MarcoFalke Please re-review :-) |
utACK 3dee4cc. |
utACK 3dee4cc |
utACK 3dee4cc |
utACK 3dee4cc |
Note to reviewers: This pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
…arations 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
Summary: Remove redundant … * ~access modifiers,~ * forward declarations, * unused variables, * statements, and * ~return types from lambdas.~ Backport of Bitcoin Core PR13691 bitcoin/bitcoin#13691 Test Plan: ``` make check-all ``` Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox Reviewed By: #bitcoin_abc, jasonbcox Subscribers: jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D4142
…rd 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
…rd 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
…rd 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
Remove redundant …
access modifiers,return types from lambdas.