Skip to content

Commit c491316

Browse files
authored
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.
1 parent afe6521 commit c491316

File tree

21 files changed

+4
-30
lines changed

21 files changed

+4
-30
lines changed

packages/react-cache/src/ReactCacheOld.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ function accessResult<I, K, V>(
125125
status: Pending,
126126
value: thenable,
127127
};
128-
// $FlowFixMe[escaped-generic] discovered when updating Flow
129128
const newEntry = lru.add(newResult, deleteEntry.bind(null, resource, key));
130129
entriesForResource.set(key, newEntry);
131130
return newResult;

packages/react-devtools-core/src/backend.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ export function connectToDevTools(options: ?ConnectOptions) {
148148
}
149149
},
150150
});
151-
// $FlowFixMe[incompatible-use] found when upgrading Flow
152151
bridge.addListener(
153152
'updateComponentFilters',
154153
(componentFilters: Array<ComponentFilter>) => {

packages/react-devtools-inline/src/backend.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export function activate(
8181
bridge,
8282
}: {
8383
bridge?: BackendBridge,
84-
// $FlowFixMe[incompatible-exact]
8584
} = {},
8685
): void {
8786
if (bridge == null) {

packages/react-devtools-inline/src/frontend.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export function initialize(
6363
}: {
6464
bridge?: FrontendBridge,
6565
store?: Store,
66-
// $FlowFixMe[incompatible-exact]
6766
} = {},
6867
): React.AbstractComponent<Props, mixed> {
6968
if (bridge == null) {

packages/react-devtools-shared/src/backend/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ export function serializeToString(data: any): string {
151151
}
152152
cache.add(value);
153153
}
154-
// $FlowFixMe
155154
if (typeof value === 'bigint') {
156155
return value.toString() + 'n';
157156
}

packages/react-devtools-shell/src/app/DeeplyNestedComponents/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function wrapWithHoc(Component: () => any, index: number) {
1717

1818
const displayName = (Component: any).displayName || Component.name;
1919

20-
// $FlowFixMe[incompatible-type] found when upgrading Flow
2120
HOC.displayName = `withHoc${index}(${displayName})`;
2221
return HOC;
2322
}

packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const immutable = Immutable.fromJS({
3131
xyz: 1,
3232
},
3333
});
34-
// $FlowFixMe
3534
const bigInt = BigInt(123); // eslint-disable-line no-undef
3635

3736
export default function UnserializableProps(): React.Node {

packages/react-dom-bindings/src/client/ReactDOMFloatClient.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ function getRootNode(container: Container): FloatRoot {
201201

202202
function getCurrentResourceRoot(): null | FloatRoot {
203203
const currentContainer = getCurrentRootHostContainer();
204-
// $FlowFixMe flow should know currentContainer is a Node and has getRootNode
205204
return currentContainer ? getRootNode(currentContainer) : null;
206205
}
207206

packages/react-dom-bindings/src/server/ReactDOMFloatServer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,11 +782,9 @@ export function resourcesFromLink(props: Props): boolean {
782782
if (__DEV__) {
783783
validateLinkPropsForStyleResource(props);
784784
}
785-
// $FlowFixMe[incompatible-use] found when upgrading Flow
786785
let preloadResource = resources.preloadsMap.get(href);
787786
if (!preloadResource) {
788787
preloadResource = createPreloadResource(
789-
// $FlowFixMe[incompatible-call] found when upgrading Flow
790788
resources,
791789
href,
792790
'style',
@@ -937,7 +935,6 @@ export function resourcesFromScript(props: Props): boolean {
937935
let preloadResource = resources.preloadsMap.get(src);
938936
if (!preloadResource) {
939937
preloadResource = createPreloadResource(
940-
// $FlowFixMe[incompatible-call] found when upgrading Flow
941938
resources,
942939
src,
943940
'script',

packages/react-reconciler/src/ReactFiberBeginWork.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ function updateSimpleMemoComponent(
599599
try {
600600
outerMemoType = init(payload);
601601
} catch (x) {
602-
// $FlowFixMe[incompatible-type] found when upgrading Flow
603602
outerMemoType = null;
604603
}
605604
// Inner propTypes will be validated in the function component path.

0 commit comments

Comments
 (0)