Skip to content

Commit e212313

Browse files
committed
Remove unused Flow suppressions (#25977)
These suppressions are no longer required. Generated using: ```sh flow/tool update-suppressions . ``` followed by adding back 1 or 2 suppressions that were only triggered in some configurations. DiffTrain build for [c491316](c491316) [View git log for this commit](https://github.com/facebook/react/commits/c49131669ba23500b8b071a5ca6ef189a28aa83e)
1 parent db4353c commit e212313

31 files changed

+93
-143
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
afe6521e134178920f0523ede4c715942d8f0564
1+
c49131669ba23500b8b071a5ca6ef189a28aa83e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
afe6521e134178920f0523ede4c715942d8f0564
1+
c49131669ba23500b8b071a5ca6ef189a28aa83e

compiled/facebook-www/React-dev.classic.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109";
30+
var ReactVersion = "18.3.0-www-classic-c49131669-20230110";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,
@@ -2179,9 +2179,7 @@ var ReactCurrentActQueue = {
21792179
didUsePromise: false
21802180
};
21812181

2182-
var ReactDebugCurrentFrame =
2183-
// $FlowFixMe[incompatible-exact]
2184-
{};
2182+
var ReactDebugCurrentFrame = {};
21852183
var currentExtraStackFrame = null;
21862184
function setExtraStackFrame(stack) {
21872185
{

compiled/facebook-www/React-dev.modern.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109";
30+
var ReactVersion = "18.3.0-www-modern-c49131669-20230110";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,
@@ -2179,9 +2179,7 @@ var ReactCurrentActQueue = {
21792179
didUsePromise: false
21802180
};
21812181

2182-
var ReactDebugCurrentFrame =
2183-
// $FlowFixMe[incompatible-exact]
2184-
{};
2182+
var ReactDebugCurrentFrame = {};
21852183
var currentExtraStackFrame = null;
21862184
function setExtraStackFrame(stack) {
21872185
{

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
643643
);
644644
};
645645
exports.useTransition = useTransition;
646-
exports.version = "18.3.0-www-classic-afe6521e1-20230109";
646+
exports.version = "18.3.0-www-classic-c49131669-20230110";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
635635
);
636636
};
637637
exports.useTransition = useTransition;
638-
exports.version = "18.3.0-www-modern-afe6521e1-20230109";
638+
exports.version = "18.3.0-www-modern-c49131669-20230110";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
654654
);
655655
};
656656
exports.useTransition = useTransition;
657-
exports.version = "18.3.0-www-classic-afe6521e1-20230109";
657+
exports.version = "18.3.0-www-classic-c49131669-20230110";
658658

659659
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
660660
if (

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
646646
);
647647
};
648648
exports.useTransition = useTransition;
649-
exports.version = "18.3.0-www-modern-afe6521e1-20230109";
649+
exports.version = "18.3.0-www-modern-c49131669-20230110";
650650

651651
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
652652
if (

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109";
72+
var ReactVersion = "18.3.0-www-classic-c49131669-20230110";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;
@@ -3352,7 +3352,7 @@ var warnedAboutMissingGetChildContext;
33523352

33533353
{
33543354
warnedAboutMissingGetChildContext = {};
3355-
} // $FlowFixMe[incompatible-exact]
3355+
}
33563356

33573357
var emptyContextObject = {};
33583358

@@ -13113,7 +13113,6 @@ function updateSimpleMemoComponent(
1311313113
try {
1311413114
outerMemoType = init(payload);
1311513115
} catch (x) {
13116-
// $FlowFixMe[incompatible-type] found when upgrading Flow
1311713116
outerMemoType = null;
1311813117
} // Inner propTypes will be validated in the function component path.
1311913118

@@ -20863,12 +20862,10 @@ function getRetryCache(finishedWork) {
2086320862
}
2086420863

2086520864
case OffscreenComponent: {
20866-
var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow
20867-
20868-
var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow
20865+
var instance = finishedWork.stateNode;
20866+
var _retryCache = instance._retryCache;
2086920867

2087020868
if (_retryCache === null) {
20871-
// $FlowFixMe[incompatible-type]
2087220869
_retryCache = instance._retryCache = new PossiblyWeakSet();
2087320870
}
2087420871

@@ -24305,7 +24302,7 @@ function handleThrow(root, thrownValue) {
2430524302
// This is a regular error.
2430624303
var isWakeable =
2430724304
thrownValue !== null &&
24308-
typeof thrownValue === "object" && // $FlowFixMe[method-unbinding]
24305+
typeof thrownValue === "object" &&
2430924306
typeof thrownValue.then === "function";
2431024307
workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation.
2431124308
? // This has slightly different behavior than suspending with `use`.
@@ -25877,8 +25874,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
2587725874
break;
2587825875

2587925876
case OffscreenComponent: {
25880-
var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow
25881-
25877+
var instance = boundaryFiber.stateNode;
2588225878
retryCache = instance._retryCache;
2588325879
break;
2588425880
}

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
6969
return self;
7070
}
7171

72-
var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109";
72+
var ReactVersion = "18.3.0-www-modern-c49131669-20230110";
7373

7474
var LegacyRoot = 0;
7575
var ConcurrentRoot = 1;
@@ -12841,7 +12841,6 @@ function updateSimpleMemoComponent(
1284112841
try {
1284212842
outerMemoType = init(payload);
1284312843
} catch (x) {
12844-
// $FlowFixMe[incompatible-type] found when upgrading Flow
1284512844
outerMemoType = null;
1284612845
} // Inner propTypes will be validated in the function component path.
1284712846

@@ -20552,12 +20551,10 @@ function getRetryCache(finishedWork) {
2055220551
}
2055320552

2055420553
case OffscreenComponent: {
20555-
var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow
20556-
20557-
var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow
20554+
var instance = finishedWork.stateNode;
20555+
var _retryCache = instance._retryCache;
2055820556

2055920557
if (_retryCache === null) {
20560-
// $FlowFixMe[incompatible-type]
2056120558
_retryCache = instance._retryCache = new PossiblyWeakSet();
2056220559
}
2056320560

@@ -23994,7 +23991,7 @@ function handleThrow(root, thrownValue) {
2399423991
// This is a regular error.
2399523992
var isWakeable =
2399623993
thrownValue !== null &&
23997-
typeof thrownValue === "object" && // $FlowFixMe[method-unbinding]
23994+
typeof thrownValue === "object" &&
2399823995
typeof thrownValue.then === "function";
2399923996
workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation.
2400023997
? // This has slightly different behavior than suspending with `use`.
@@ -25566,8 +25563,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
2556625563
break;
2556725564

2556825565
case OffscreenComponent: {
25569-
var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow
25570-
25566+
var instance = boundaryFiber.stateNode;
2557125567
retryCache = instance._retryCache;
2557225568
break;
2557325569
}

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9804,7 +9804,7 @@ var slice = Array.prototype.slice,
98049804
return null;
98059805
},
98069806
bundleType: 0,
9807-
version: "18.3.0-www-classic-afe6521e1-20230109",
9807+
version: "18.3.0-www-classic-c49131669-20230110",
98089808
rendererPackageName: "react-art"
98099809
};
98109810
var internals$jscomp$inline_1318 = {
@@ -9835,7 +9835,7 @@ var internals$jscomp$inline_1318 = {
98359835
scheduleRoot: null,
98369836
setRefreshHandler: null,
98379837
getCurrentFiber: null,
9838-
reconcilerVersion: "18.3.0-next-afe6521e1-20230109"
9838+
reconcilerVersion: "18.3.0-next-c49131669-20230110"
98399839
};
98409840
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
98419841
var hook$jscomp$inline_1319 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9471,7 +9471,7 @@ var slice = Array.prototype.slice,
94719471
return null;
94729472
},
94739473
bundleType: 0,
9474-
version: "18.3.0-www-modern-afe6521e1-20230109",
9474+
version: "18.3.0-www-modern-c49131669-20230110",
94759475
rendererPackageName: "react-art"
94769476
};
94779477
var internals$jscomp$inline_1309 = {
@@ -9502,7 +9502,7 @@ var internals$jscomp$inline_1309 = {
95029502
scheduleRoot: null,
95039503
setRefreshHandler: null,
95049504
getCurrentFiber: null,
9505-
reconcilerVersion: "18.3.0-next-afe6521e1-20230109"
9505+
reconcilerVersion: "18.3.0-next-c49131669-20230110"
95069506
};
95079507
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
95089508
var hook$jscomp$inline_1310 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9793,8 +9793,7 @@ function getRootNode(container) {
97939793
}
97949794

97959795
function getCurrentResourceRoot() {
9796-
var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode
9797-
9796+
var currentContainer = getCurrentRootHostContainer();
97989797
return currentContainer ? getRootNode(currentContainer) : null;
97999798
} // This resource type constraint can be loosened. It really is everything except PreloadResource
98009799
// because that is the only one that does not have an optional instance type. Expand as needed.
@@ -17221,7 +17220,7 @@ var warnedAboutMissingGetChildContext;
1722117220

1722217221
{
1722317222
warnedAboutMissingGetChildContext = {};
17224-
} // $FlowFixMe[incompatible-exact]
17223+
}
1722517224

1722617225
var emptyContextObject = {};
1722717226

@@ -27479,7 +27478,6 @@ function updateSimpleMemoComponent(
2747927478
try {
2748027479
outerMemoType = init(payload);
2748127480
} catch (x) {
27482-
// $FlowFixMe[incompatible-type] found when upgrading Flow
2748327481
outerMemoType = null;
2748427482
} // Inner propTypes will be validated in the function component path.
2748527483

@@ -35679,12 +35677,10 @@ function getRetryCache(finishedWork) {
3567935677
}
3568035678

3568135679
case OffscreenComponent: {
35682-
var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow
35683-
35684-
var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow
35680+
var instance = finishedWork.stateNode;
35681+
var _retryCache = instance._retryCache;
3568535682

3568635683
if (_retryCache === null) {
35687-
// $FlowFixMe[incompatible-type]
3568835684
_retryCache = instance._retryCache = new PossiblyWeakSet();
3568935685
}
3569035686

@@ -39332,7 +39328,7 @@ function handleThrow(root, thrownValue) {
3933239328
// This is a regular error.
3933339329
var isWakeable =
3933439330
thrownValue !== null &&
39335-
typeof thrownValue === "object" && // $FlowFixMe[method-unbinding]
39331+
typeof thrownValue === "object" &&
3933639332
typeof thrownValue.then === "function";
3933739333
workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation.
3933839334
? // This has slightly different behavior than suspending with `use`.
@@ -40935,8 +40931,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
4093540931
break;
4093640932

4093740933
case OffscreenComponent: {
40938-
var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow
40939-
40934+
var instance = boundaryFiber.stateNode;
4094040935
retryCache = instance._retryCache;
4094140936
break;
4094240937
}
@@ -42707,7 +42702,7 @@ function createFiberRoot(
4270742702
return root;
4270842703
}
4270942704

42710-
var ReactVersion = "18.3.0-www-classic-afe6521e1-20230109";
42705+
var ReactVersion = "18.3.0-www-classic-c49131669-20230110";
4271142706

4271242707
function createPortal(
4271342708
children,

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14301,8 +14301,7 @@ function getRootNode(container) {
1430114301
}
1430214302

1430314303
function getCurrentResourceRoot() {
14304-
var currentContainer = getCurrentRootHostContainer(); // $FlowFixMe flow should know currentContainer is a Node and has getRootNode
14305-
14304+
var currentContainer = getCurrentRootHostContainer();
1430614305
return currentContainer ? getRootNode(currentContainer) : null;
1430714306
} // This resource type constraint can be loosened. It really is everything except PreloadResource
1430814307
// because that is the only one that does not have an optional instance type. Expand as needed.
@@ -27242,7 +27241,6 @@ function updateSimpleMemoComponent(
2724227241
try {
2724327242
outerMemoType = init(payload);
2724427243
} catch (x) {
27245-
// $FlowFixMe[incompatible-type] found when upgrading Flow
2724627244
outerMemoType = null;
2724727245
} // Inner propTypes will be validated in the function component path.
2724827246

@@ -35403,12 +35401,10 @@ function getRetryCache(finishedWork) {
3540335401
}
3540435402

3540535403
case OffscreenComponent: {
35406-
var instance = finishedWork.stateNode; // $FlowFixMe[incompatible-type-arg] found when upgrading Flow
35407-
35408-
var _retryCache = instance._retryCache; // $FlowFixMe[incompatible-type] found when upgrading Flow
35404+
var instance = finishedWork.stateNode;
35405+
var _retryCache = instance._retryCache;
3540935406

3541035407
if (_retryCache === null) {
35411-
// $FlowFixMe[incompatible-type]
3541235408
_retryCache = instance._retryCache = new PossiblyWeakSet();
3541335409
}
3541435410

@@ -39056,7 +39052,7 @@ function handleThrow(root, thrownValue) {
3905639052
// This is a regular error.
3905739053
var isWakeable =
3905839054
thrownValue !== null &&
39059-
typeof thrownValue === "object" && // $FlowFixMe[method-unbinding]
39055+
typeof thrownValue === "object" &&
3906039056
typeof thrownValue.then === "function";
3906139057
workInProgressSuspendedReason = isWakeable // A wakeable object was thrown by a legacy Suspense implementation.
3906239058
? // This has slightly different behavior than suspending with `use`.
@@ -40659,8 +40655,7 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
4065940655
break;
4066040656

4066140657
case OffscreenComponent: {
40662-
var instance = boundaryFiber.stateNode; // $FlowFixMe[incompatible-type] found when upgrading Flow
40663-
40658+
var instance = boundaryFiber.stateNode;
4066440659
retryCache = instance._retryCache;
4066540660
break;
4066640661
}
@@ -42431,7 +42426,7 @@ function createFiberRoot(
4243142426
return root;
4243242427
}
4243342428

42434-
var ReactVersion = "18.3.0-www-modern-afe6521e1-20230109";
42429+
var ReactVersion = "18.3.0-www-modern-c49131669-20230110";
4243542430

4243642431
function createPortal(
4243742432
children,

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15554,7 +15554,7 @@ Internals.Events = [
1555415554
var devToolsConfig$jscomp$inline_1750 = {
1555515555
findFiberByHostInstance: getClosestInstanceFromNode,
1555615556
bundleType: 0,
15557-
version: "18.3.0-www-classic-afe6521e1-20230109",
15557+
version: "18.3.0-www-classic-c49131669-20230110",
1555815558
rendererPackageName: "react-dom"
1555915559
};
1556015560
var internals$jscomp$inline_2134 = {
@@ -15584,7 +15584,7 @@ var internals$jscomp$inline_2134 = {
1558415584
scheduleRoot: null,
1558515585
setRefreshHandler: null,
1558615586
getCurrentFiber: null,
15587-
reconcilerVersion: "18.3.0-next-afe6521e1-20230109"
15587+
reconcilerVersion: "18.3.0-next-c49131669-20230110"
1558815588
};
1558915589
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1559015590
var hook$jscomp$inline_2135 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15826,4 +15826,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
1582615826
);
1582715827
};
1582815828
exports.unstable_runWithPriority = runWithPriority;
15829-
exports.version = "18.3.0-next-afe6521e1-20230109";
15829+
exports.version = "18.3.0-next-c49131669-20230110";

0 commit comments

Comments
 (0)