Unverified Commit df1de76c authored by Shu Ding's avatar Shu Ding Committed by GitHub

Remove unused variables (#54149)

These are not referenced anywhere in the codebase.
parent bc873286
...@@ -15,7 +15,6 @@ export const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}` ...@@ -15,7 +15,6 @@ export const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`
// Pattern to detect instrumentation hooks file // Pattern to detect instrumentation hooks file
export const INSTRUMENTATION_HOOK_FILENAME = 'instrumentation' export const INSTRUMENTATION_HOOK_FILENAME = 'instrumentation'
export const INSTRUMENTATION_HOOKS_LOCATION_REGEXP = `(?:src/)?${INSTRUMENTATION_HOOK_FILENAME}`
// Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path, // Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path,
// we have to use a private alias // we have to use a private alias
......
...@@ -2,7 +2,6 @@ import type { __ApiPreviewProps } from './api-utils' ...@@ -2,7 +2,6 @@ import type { __ApiPreviewProps } from './api-utils'
import type { DomainLocale } from './config' import type { DomainLocale } from './config'
import type { FontManifest, FontConfig } from './font-utils' import type { FontManifest, FontConfig } from './font-utils'
import type { LoadComponentsReturnType } from './load-components' import type { LoadComponentsReturnType } from './load-components'
import type { RouteMatchFn } from '../shared/lib/router/utils/route-matcher'
import type { MiddlewareRouteMatch } from '../shared/lib/router/utils/middleware-route-matcher' import type { MiddlewareRouteMatch } from '../shared/lib/router/utils/middleware-route-matcher'
import type { Params } from '../shared/lib/router/utils/route-matcher' import type { Params } from '../shared/lib/router/utils/route-matcher'
import type { NextConfig, NextConfigComplete } from './config-shared' import type { NextConfig, NextConfigComplete } from './config-shared'
...@@ -120,12 +119,6 @@ export type FindComponentsResult = { ...@@ -120,12 +119,6 @@ export type FindComponentsResult = {
query: NextParsedUrlQuery query: NextParsedUrlQuery
} }
export interface RoutingItem {
page: string
match: RouteMatchFn
re?: RegExp
}
export interface MiddlewareRoutingItem { export interface MiddlewareRoutingItem {
page: string page: string
match: MiddlewareRouteMatch match: MiddlewareRouteMatch
......
...@@ -51,10 +51,8 @@ export const BUILD_ID_FILE = 'BUILD_ID' ...@@ -51,10 +51,8 @@ export const BUILD_ID_FILE = 'BUILD_ID'
export const BLOCKED_PAGES = ['/_document', '/_app', '/_error'] export const BLOCKED_PAGES = ['/_document', '/_app', '/_error']
export const CLIENT_PUBLIC_FILES_PATH = 'public' export const CLIENT_PUBLIC_FILES_PATH = 'public'
export const CLIENT_STATIC_FILES_PATH = 'static' export const CLIENT_STATIC_FILES_PATH = 'static'
export const CLIENT_STATIC_FILES_RUNTIME = 'runtime'
export const STRING_LITERAL_DROP_BUNDLE = '__NEXT_DROP_CLIENT_FILE__' export const STRING_LITERAL_DROP_BUNDLE = '__NEXT_DROP_CLIENT_FILE__'
export const NEXT_BUILTIN_DOCUMENT = '__NEXT_BUILTIN_DOCUMENT__' export const NEXT_BUILTIN_DOCUMENT = '__NEXT_BUILTIN_DOCUMENT__'
export const NEXT_CLIENT_SSR_ENTRY_SUFFIX = '.__ssr__'
// server/[entry]/page_client-reference-manifest.js // server/[entry]/page_client-reference-manifest.js
export const CLIENT_REFERENCE_MANIFEST = 'client-reference-manifest' export const CLIENT_REFERENCE_MANIFEST = 'client-reference-manifest'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment