BoxControl: remove unused state for icon side#77143
Conversation
|
Size Change: -82 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 13b5e0c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24135701802
|
Spinoff from ESLint upgrade in #76654 where the linter detected a deeper issue. In this case, an unused
sidestate variable.There is a
[ side, setSide ] = useStatecall where thesidestate is never actually used. The usage was removed in #67626 where a<FlexedBoxControlIcon side={ side }>component was refactored to<InputControl side="all">. But thesidestate was left behind.This PR removes all the irrelevant code, including the
getInitialSidehelper.