Skip to content

Commit 2567726

Browse files
authored
[flags] remove enableRemoveConsolePatches (#32425)
wait to merge until we sync #32376, since that enables it in some testing builds that might break
1 parent 9dd378f commit 2567726

14 files changed

+0
-279
lines changed

packages/react-reconciler/src/ReactFiberDevToolsHook.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {
3636
log,
3737
unstable_setDisableYieldValue,
3838
} from './Scheduler';
39-
import {setSuppressWarning} from 'shared/consoleWithStackDev';
4039

4140
declare const __REACT_DEVTOOLS_GLOBAL_HOOK__: Object | void;
4241

@@ -191,7 +190,6 @@ export function setIsStrictModeForDevtools(newIsStrictMode: boolean) {
191190
// in SchedulerMock. To reduce the noise in strict mode tests,
192191
// suppress warnings and disable scheduler yielding during the double render
193192
unstable_setDisableYieldValue(newIsStrictMode);
194-
setSuppressWarning(newIsStrictMode);
195193
}
196194

197195
if (injectedHook && typeof injectedHook.setStrictMode === 'function') {

packages/shared/ReactFeatureFlags.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,3 @@ export const enableUpdaterTracking = __PROFILE__;
267267

268268
// Internal only.
269269
export const enableDO_NOT_USE_disableStrictPassiveEffect = false;
270-
271-
export const enableRemoveConsolePatches = true;

packages/shared/consoleWithStackDev.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/shared/forks/ReactFeatureFlags.native-fb.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const {
3434

3535
// These two can be removed
3636
export const enableOwnerStacks = true;
37-
export const enableRemoveConsolePatches = true;
3837

3938
// The rest of the flags are static for better dead code elimination.
4039
export const disableClientCache = true;

packages/shared/forks/ReactFeatureFlags.native-oss.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export const enableProfilerTimer = __PROFILE__;
8181
export const enableProfilerCommitHooks = __PROFILE__;
8282
export const enableProfilerNestedUpdatePhase = __PROFILE__;
8383
export const enableUpdaterTracking = __PROFILE__;
84-
export const enableRemoveConsolePatches = true;
8584

8685
// Flow magic to verify the exports of this file match the original version.
8786
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

packages/shared/forks/ReactFeatureFlags.test-renderer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export const disableDefaultPropsExceptForClasses = true;
9191

9292
export const enableObjectFiber = false;
9393
export const enableOwnerStacks = true;
94-
export const enableRemoveConsolePatches = true;
9594

9695
// Flow magic to verify the exports of this file match the original version.
9796
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

packages/shared/forks/ReactFeatureFlags.test-renderer.native-fb.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export const enableHydrationLaneScheduling = true;
6868
export const enableYieldingBeforePassive = false;
6969
export const enableThrottledScheduling = false;
7070
export const enableViewTransition = false;
71-
export const enableRemoveConsolePatches = true;
7271
export const enableSwipeTransition = false;
7372
export const enableFastAddPropertiesInDiffing = false;
7473
export const enableLazyPublicInstanceInFabric = false;

packages/shared/forks/ReactFeatureFlags.test-renderer.www.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export const enableYieldingBeforePassive = false;
8383

8484
export const enableThrottledScheduling = false;
8585
export const enableViewTransition = false;
86-
export const enableRemoveConsolePatches = true;
8786
export const enableSwipeTransition = false;
8887
export const enableFastAddPropertiesInDiffing = false;
8988
export const enableLazyPublicInstanceInFabric = false;

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const {
4444

4545
// Can remove these two
4646
export const enableOwnerStacks = true;
47-
export const enableRemoveConsolePatches = true;
4847

4948
export const enableProfilerTimer = __PROFILE__;
5049
export const enableProfilerCommitHooks = __PROFILE__;

packages/shared/forks/consoleWithStackDev.rn.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)