Skip to content

refactor: remove dead code and merge duplicated helpers - #2157

Merged
luanfreitasdev merged 10 commits into
7.xfrom
refactor/cleanup-dead-code
Oct 31, 2026
Merged

luanfreitasdev merged 10 commits into
7.xfrom
refactor/cleanup-dead-code

Conversation

@luanfreitasdev

Copy link
Copy Markdown
Member

Internal cleanup with no change to documented public API.

  • Removes unused component properties ($totalCurrentPage, $rowIndex, $showErrorBag, $headers, $select) and unused methods/parameters (FilterKey::decodeDraft, PowerGridStub helpers, RowRenderer::canRenderDirect and addEnabledFilters arguments).
  • Adds ThemeManager::current() and uses it wherever the bound theme was resolved by hand.
  • Builds the name-keyed setUp map in one place.
  • Folds the repeated theme builder section nesting into a single buildSection() helper (covered by a new test).
  • Moves action button resolution and HTML building from HasActions to Support\Actions\ButtonRenderer.
  • Hoists ActionsResolver out of the checkbox loop and reuses updatedShowFilters() in toggleFilters().

@luanfreitasdev
luanfreitasdev merged commit e0b0910 into 7.x Oct 31, 2026
43 checks passed
@luanfreitasdev
luanfreitasdev deleted the refactor/cleanup-dead-code branch November 25, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant