Unverified Commit 7691c435 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

cleanup unused server util (#67645)

Noticed this handler was still stubbed out but wasn't being called by
anything anymore.
parent 8cc2dd0e
...@@ -403,8 +403,6 @@ export default abstract class Server< ...@@ -403,8 +403,6 @@ export default abstract class Server<
renderOpts: LoadedRenderOpts renderOpts: LoadedRenderOpts
): Promise<RenderResult> ): Promise<RenderResult>
protected abstract getPrefetchRsc(pathname: string): Promise<string | null>
protected abstract getIncrementalCache(options: { protected abstract getIncrementalCache(options: {
requestHeaders: Record<string, undefined | string | string[]> requestHeaders: Record<string, undefined | string | string[]>
requestProtocol: 'http' | 'https' requestProtocol: 'http' | 'https'
......
...@@ -84,10 +84,7 @@ import { setHttpClientAndAgentOptions } from './setup-http-agent-env' ...@@ -84,10 +84,7 @@ import { setHttpClientAndAgentOptions } from './setup-http-agent-env'
import { isPagesAPIRouteMatch } from './route-matches/pages-api-route-match' import { isPagesAPIRouteMatch } from './route-matches/pages-api-route-match'
import type { PagesAPIRouteMatch } from './route-matches/pages-api-route-match' import type { PagesAPIRouteMatch } from './route-matches/pages-api-route-match'
import type { MatchOptions } from './route-matcher-managers/route-matcher-manager' import type { MatchOptions } from './route-matcher-managers/route-matcher-manager'
import { import { INSTRUMENTATION_HOOK_FILENAME } from '../lib/constants'
INSTRUMENTATION_HOOK_FILENAME,
RSC_PREFETCH_SUFFIX,
} from '../lib/constants'
import { BubbledError, getTracer } from './lib/trace/tracer' import { BubbledError, getTracer } from './lib/trace/tracer'
import { NextNodeServerSpan } from './lib/trace/constants' import { NextNodeServerSpan } from './lib/trace/constants'
import { nodeFs } from './lib/node-fs-methods' import { nodeFs } from './lib/node-fs-methods'
...@@ -1079,13 +1076,6 @@ export default class NextNodeServer extends BaseServer< ...@@ -1079,13 +1076,6 @@ export default class NextNodeServer extends BaseServer<
return this.runApi(req, res, query, match) return this.runApi(req, res, query, match)
} }
protected getPrefetchRsc(pathname: string): Promise<string> {
return this.getCacheFilesystem().readFile(
join(this.serverDistDir, 'app', `${pathname}${RSC_PREFETCH_SUFFIX}`),
'utf8'
)
}
protected getCacheFilesystem(): CacheFs { protected getCacheFilesystem(): CacheFs {
return nodeFs return nodeFs
} }
......
...@@ -404,10 +404,6 @@ export default class NextWebServer extends BaseServer< ...@@ -404,10 +404,6 @@ export default class NextWebServer extends BaseServer<
return new Set<string>() return new Set<string>()
} }
protected async getPrefetchRsc(): Promise<string | null> {
return null
}
protected getinterceptionRoutePatterns(): RegExp[] { protected getinterceptionRoutePatterns(): RegExp[] {
return ( return (
this.serverOptions.webServerConfig.interceptionRouteRewrites?.map( this.serverOptions.webServerConfig.interceptionRouteRewrites?.map(
......
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