-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Remove unused includes from dbwrapper.h #25645
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
The head ref may contain hidden characters: "2207-include-dbwrapper-\u{1F519}"
Conversation
This is needed for the next commit
They are needed, otherwise the next commit will not compile
Concept ACK. |
ACK if green tidy. Could also include rpc/fees.cpp should remove these lines:
- #include <policy/policy.h> // lines 9-9
- #include <util/system.h> // lines 19-19 |
IWYU confirms that they are unused
fa622e0
to
faf98ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK faf98ae, I have reviewed the code and it looks OK, I agree it can be merged.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
It indeed does look a bit confusing. But I can still build from scratch on macOS 12.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK faf98ae
CI is green, compiled on ubuntu 22.04 and macOS 12.4 without issue, also ran tests.
faf98ae Remove unused includes in rpc/fees.cpp (MacroFake) 1111dde Remove unused includes from dbwrapper.h (MacroFake) fa77fdd Add missing includes (MacroFake) fa869ce Add missing includes to node/chainstate (MacroFake) Pull request description: Unused includes are confusing, but also cause unrelated compile errors when the unused includes were to be removed. Fix that by adding the missing includes where they are needed and then remove them where they are not needed. This is also checked by iwyu. ACKs for top commit: hebasto: ACK faf98ae, I have reviewed the code and it looks OK, I agree it can be merged. jarolrod: Code Review ACK bitcoin@faf98ae Tree-SHA512: 75f3c6e6f6ecf8a98233e1a1463c75ca4e0eb3ec341150d274141072fe95413a3c2ec6386d1c527899cc63d43f63f5eb5991509847412773362808ddfb1bb435
Unused includes are confusing, but also cause unrelated compile errors when the unused includes were to be removed.
Fix that by adding the missing includes where they are needed and then remove them where they are not needed. This is also checked by iwyu.