Skip to content
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

Remove gui/auxiliary/filter.hpp and unused includes of pane.hpp #6558

Merged
merged 1 commit into from Mar 14, 2022

Conversation

stevecotton
Copy link
Contributor

Remove filter.hpp, which wasn't included by any file, and relied on
pane.hpp indirectly via one of the lines removed in this commit. The sorting
functionality seems to have moved into pane.cpp when matrix.hpp was added.
Note: there are two other unrelated filter.hpp files.

Header pane.hpp is only used by matrix.hpp, pane.cpp, and window_builder.cpp;
the class is also used via a forward-declaration in window.hpp, which friends
it, allowing a call to window::layout_linked_widgets. The class is also made
accessible via REGISTER_WIDGET.

Part of #6540.

Remove filter.hpp, which wasn't included by any file, and relied on
pane.hpp indirectly via one of the lines removed in this commit. The sorting
functionality seems to have moved into pane.cpp when matrix.hpp was added.
Note: there are two other unrelated `filter.hpp` files.

Header pane.hpp is only used by matrix.hpp, pane.cpp, and window_builder.cpp;
the class is also used via a forward-declaration in window.hpp, which friends
it, allowing a call to window::layout_linked_widgets. The class is also made
accessible via REGISTER_WIDGET.

Part of wesnoth#6540.
@stevecotton stevecotton requested a review from Vultraz March 9, 2022 12:56
@stevecotton stevecotton self-assigned this Mar 9, 2022
@github-actions github-actions bot added Add-ons Issues with the add-ons client and/or server. Building Build-time issues. UI User interface issues, including both back-end and front-end issues. labels Mar 9, 2022
@Vultraz Vultraz merged commit f1a9420 into wesnoth:master Mar 14, 2022
@stevecotton stevecotton deleted the cleanup_pane_includes branch March 15, 2022 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add-ons Issues with the add-ons client and/or server. Building Build-time issues. UI User interface issues, including both back-end and front-end issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants