[DevTools] Stop setting unused global variables #35532
Merged
+8
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We no longer set the following globals since they're not read by DevTools. It also doesn't look like they had any meaningful values anymore which was hidden by missing Flow coverage.
__REACT_DEVTOOLS_APPEND_COMPONENT_STACK____REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS____REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS____REACT_DEVTOOLS_HIDE_CONSOLE_LOGS_IN_STRICT_MODE____REACT_DEVTOOLS_DISABLE_SECOND_CONSOLE_LOG_DIMMING_IN_STRICT_MODE____REACT_DEVTOOLS_COMPONENT_FILTERS__is still set since it's still in use (although not fully functional in the browser extension which I intend to fix).