Unverified Commit 8c94014b authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Server: Remove unused code (#81886)

## What?

Removes some unused code.
parent 536b6b79
......@@ -639,10 +639,6 @@ export default abstract class Server<
this.responseCache = this.getResponseCache({ dev })
}
protected reloadMatchers() {
return this.matchers.reload()
}
private handleRSCRequest: RouteHandler<ServerRequest, ServerResponse> = (
req,
_res,
......
......@@ -117,7 +117,6 @@ export default class DevServer extends Server {
private actualMiddlewareFile?: string
private actualInstrumentationHookFile?: string
private middleware?: MiddlewareRoutingItem
private originalFetch?: typeof fetch
private readonly bundlerService: DevBundlerService
private staticPathsCache: LRUCache<
UnwrapPromise<ReturnType<DevServer['getStaticPaths']>>
......
......@@ -107,9 +107,6 @@ export async function setupFsCheck(opts: {
dev: boolean
minimalMode?: boolean
config: NextConfigComplete
addDevWatcherCallback?: (
arg: (files: Map<string, { timestamp: number }>) => void
) => void
}) {
const getItemsLru = !opts.dev
? new LRUCache<FsOutput | null>(1024 * 1024, function length(value) {
......
......@@ -122,8 +122,6 @@ import {
export * from './base-server'
declare const __non_webpack_require__: NodeRequire
// For module that can be both CJS or ESM
const dynamicImportEsmDefault = process.env.NEXT_MINIMAL
? (id: string) =>
......@@ -251,7 +249,6 @@ export default class NextNodeServer extends BaseServer<
protected middlewareManifestPath: string
private _serverDistDir: string | undefined
private imageResponseCache?: ResponseCache
private registeredInstrumentation: boolean = false
protected renderWorkersPromises?: Promise<void>
protected dynamicRoutes?: {
match: import('../shared/lib/router/utils/route-matcher').RouteMatchFn
......
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