Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Mar 21, 2023

This is unused outside of tests and the default constructor. With C++11, it can be replaced by C++11 member initializers in the default constructor.

Beside removing unused code, this also makes it less fragile in light of uninitialized memory. (See also #26296 (comment))

If new code needs to set this to null, it can use std::optional, or in the worst case re-introduce this method.

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 21, 2023

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
ACK dergoegge, john-moffett, TheCharlatan
Concept ACK fanquake, hebasto

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

@fanquake
Copy link
Member

Concept ACK

@dergoegge
Copy link
Member

Code review ACK fa67b81

@hebasto
Copy link
Member

hebasto commented Mar 21, 2023

Concept ACK.

Copy link
Contributor

@john-moffett john-moffett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa67b81

@sedited
Copy link
Contributor

sedited commented Mar 21, 2023

ACK fa67b81

@fanquake fanquake merged commit 34551cb into bitcoin:master Mar 22, 2023
@maflcko maflcko deleted the 2303-no-flatfile-setnull-🚗 branch March 22, 2023 09:45
@fanquake
Copy link
Member

Door open for anyone to followup with more ::SetNull() removal.

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 23, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Mar 21, 2024
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