Skip to content

Commit

Permalink
Should not export functions that are not imported (facebook#27222)
Browse files Browse the repository at this point in the history
These functions are not imported anywhere and should have not been
exported to begin with
  • Loading branch information
gnoff authored and AndyPengc12 committed Apr 15, 2024
1 parent 7f8cee8 commit 76ec770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -5014,7 +5014,7 @@ function getResourceKey(as: string, href: string): string {
return `[${as}]${href}`;
}

export function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
if (!enableFloat) {
return;
}
Expand Down Expand Up @@ -5073,7 +5073,7 @@ export function prefetchDNS(href: string, options?: ?PrefetchDNSOptions) {
}
}

export function preconnect(href: string, options?: ?PreconnectOptions) {
function preconnect(href: string, options?: ?PreconnectOptions) {
if (!enableFloat) {
return;
}
Expand Down Expand Up @@ -5136,7 +5136,7 @@ export function preconnect(href: string, options?: ?PreconnectOptions) {
}
}

export function preload(href: string, options: PreloadOptions) {
function preload(href: string, options: PreloadOptions) {
if (!enableFloat) {
return;
}
Expand Down

0 comments on commit 76ec770

Please sign in to comment.