Skip to content

Conversation

practicalswift
Copy link
Contributor

@practicalswift practicalswift commented Jul 17, 2018

Remove redundant …

  • access modifiers,
  • forward declarations,
  • unused variables,
  • statements, and
  • return types from lambdas.

@Empact
Copy link
Contributor

Empact commented Jul 17, 2018

I'm unsure on 1d45dcd and dc0996f because they serve to help document the code.

@maflcko
Copy link
Member

maflcko commented Jul 17, 2018

Agree with @Empact

@practicalswift
Copy link
Contributor Author

practicalswift commented Jul 17, 2018

@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? struct has public access to its base classes by default. Perhaps I'm missing something :-)

@Empact
Copy link
Contributor

Empact commented Jul 17, 2018

@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 struct and class differ in their defaults.

@practicalswift practicalswift changed the title Remove redundant variables, statements, access modifiers, forward declarations and return types Remove redundant variables, statements and forward declarations Jul 18, 2018
@practicalswift
Copy link
Contributor Author

@Empact I see your point. I've now excluded that commit.

@Empact @MarcoFalke Please re-review :-)

@promag
Copy link
Contributor

promag commented Jul 18, 2018

utACK 3dee4cc.

@Empact
Copy link
Contributor

Empact commented Jul 18, 2018

utACK 3dee4cc

@greenaddress
Copy link

utACK 3dee4cc

@maflcko
Copy link
Member

maflcko commented Jul 20, 2018

utACK 3dee4cc

@DrahtBot
Copy link
Contributor

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.

@maflcko maflcko merged commit 3dee4cc into bitcoin:master Jul 22, 2018
maflcko pushed a commit that referenced this pull request Jul 22, 2018
…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
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 27, 2019
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
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Feb 2, 2021
…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
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Feb 4, 2021
…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
@practicalswift practicalswift deleted the redundancy-cleanups branch April 10, 2021 19:35
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 27, 2022
…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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants