-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: Remove dead code #37581
Conversation
Size Change: -146 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Is this related to #37571 ? |
@mkaz, this is a general clean-up of the Re #37571 - we can probably ignore most of the "Can't perform a React state update on an unmounted component" warnings. React 18 is removing them - reactwg/react-18#82. |
Should we also get rid of these consts? I found them while looking for occurrences of the filenames of the files that this PR deletes. They look unused to me (but I don't know a lot more context): gutenberg/packages/edit-site/src/components/navigation-sidebar/navigation-panel/constants.js Lines 71 to 73 in 2e5af3f
We might also wanna audit adjacent constants. |
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.
Seems to be working well, and I couldn't find any of theses files used anywhere in the codebase.
I'd suggest removing a few constants as part of this PR though: #37581 (comment)
|
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.
Thanks @Mamaduka, LGTM!
I've noticed that some e2e tests were failing. Re-running in the hope they were unrelated 🤞
* Site Editor: Remove dead code * Remove unused constants
Description
Part of #36597.
Removes unused code left-overs after recent Template list refactoring.
I mostly checked for unimported components; this shouldn't affect anything.
How has this been tested?
All checks are passing.
Types of changes
Code Quality
Checklist:
*.native.js
files for terms that need renaming or removal).