mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Should not export functions that are not imported (#27222)
These functions are not imported anywhere and should have not been exported to begin with
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user