Skip to content

Commit 739ff9d

Browse files
committed
[flags] remove enableRemoveConsolePatches
1 parent a84862d commit 739ff9d

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
@@ -262,5 +262,3 @@ export const enableUpdaterTracking = __PROFILE__;
262262

263263
// Internal only.
264264
export const enableDO_NOT_USE_disableStrictPassiveEffect = false;
265-
266-
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
@@ -33,7 +33,6 @@ export const {
3333

3434
// These two can be removed
3535
export const enableOwnerStacks = true;
36-
export const enableRemoveConsolePatches = true;
3736

3837
// The rest of the flags are static for better dead code elimination.
3938
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
@@ -80,7 +80,6 @@ export const enableProfilerTimer = __PROFILE__;
8080
export const enableProfilerCommitHooks = __PROFILE__;
8181
export const enableProfilerNestedUpdatePhase = __PROFILE__;
8282
export const enableUpdaterTracking = __PROFILE__;
83-
export const enableRemoveConsolePatches = true;
8483

8584
// Flow magic to verify the exports of this file match the original version.
8685
((((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
@@ -90,7 +90,6 @@ export const disableDefaultPropsExceptForClasses = true;
9090

9191
export const enableObjectFiber = false;
9292
export const enableOwnerStacks = true;
93-
export const enableRemoveConsolePatches = true;
9493

9594
// Flow magic to verify the exports of this file match the original version.
9695
((((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
@@ -67,7 +67,6 @@ export const enableHydrationLaneScheduling = true;
6767
export const enableYieldingBeforePassive = false;
6868
export const enableThrottledScheduling = false;
6969
export const enableViewTransition = false;
70-
export const enableRemoveConsolePatches = true;
7170
export const enableSwipeTransition = false;
7271
export const enableFastAddPropertiesInDiffing = false;
7372
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
@@ -82,7 +82,6 @@ export const enableYieldingBeforePassive = false;
8282

8383
export const enableThrottledScheduling = false;
8484
export const enableViewTransition = false;
85-
export const enableRemoveConsolePatches = true;
8685
export const enableSwipeTransition = false;
8786
export const enableFastAddPropertiesInDiffing = false;
8887
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)