Repository navigation
Clean up unused utils of spacing sizes control - #68794
Conversation
|
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
|
Flaky tests detected in aaedb08. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12879064813
|
aaedb08 to
88882f4
Compare
|
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. |
tyxla
left a comment
There was a problem hiding this comment.
Makes sense 👍
It's a bummer that some of those utils are still exposed externally:
gutenberg/packages/block-editor/src/components/index.js
Lines 100 to 104 in 788ceba
* Remove `getAllRawValue` and unit tests * Remove `isValuesMixed` and unit tests * Remove `isValuesDefined` and unit tests * Remove `getSupportedMenuItems` and unit tests Co-authored-by: stokesman <presstoke@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
* Remove `getAllRawValue` and unit tests * Remove `isValuesMixed` and unit tests * Remove `isValuesDefined` and unit tests * Remove `getSupportedMenuItems` and unit tests Co-authored-by: stokesman <presstoke@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
* Remove `getAllRawValue` and unit tests * Remove `isValuesMixed` and unit tests * Remove `isValuesDefined` and unit tests * Remove `getSupportedMenuItems` and unit tests Co-authored-by: stokesman <presstoke@git.wordpress.org> Co-authored-by: tyxla <tyxla@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
Removes leftover code from implementation changes to
SpacingSizesControl.Why?
The code doesn’t seem intentionally kept around and probably just got overlooked. At least part of this happened with #50660 but I don’t know if that’s when all the items removed here became unused.
How?
Removes code that I couldn’t find references to outside of the component’s unit tests.