Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
8c94014b
Unverified
Commit
8c94014b
authored
Jul 21, 2025
by
Tim Neutkens
Committed by
GitHub
Jul 21, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Server: Remove unused code (#81886)
## What? Removes some unused code.
parent
536b6b79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
11 deletions
+0
-11
base-server.ts
packages/next/src/server/base-server.ts
+0
-4
next-dev-server.ts
packages/next/src/server/dev/next-dev-server.ts
+0
-1
filesystem.ts
packages/next/src/server/lib/router-utils/filesystem.ts
+0
-3
next-server.ts
packages/next/src/server/next-server.ts
+0
-3
No files found.
packages/next/src/server/base-server.ts
View file @
8c94014b
...
@@ -639,10 +639,6 @@ export default abstract class Server<
...
@@ -639,10 +639,6 @@ export default abstract class Server<
this
.
responseCache
=
this
.
getResponseCache
({
dev
})
this
.
responseCache
=
this
.
getResponseCache
({
dev
})
}
}
protected
reloadMatchers
()
{
return
this
.
matchers
.
reload
()
}
private
handleRSCRequest
:
RouteHandler
<
ServerRequest
,
ServerResponse
>
=
(
private
handleRSCRequest
:
RouteHandler
<
ServerRequest
,
ServerResponse
>
=
(
req
,
req
,
_res
,
_res
,
...
...
packages/next/src/server/dev/next-dev-server.ts
View file @
8c94014b
...
@@ -117,7 +117,6 @@ export default class DevServer extends Server {
...
@@ -117,7 +117,6 @@ export default class DevServer extends Server {
private
actualMiddlewareFile
?:
string
private
actualMiddlewareFile
?:
string
private
actualInstrumentationHookFile
?:
string
private
actualInstrumentationHookFile
?:
string
private
middleware
?:
MiddlewareRoutingItem
private
middleware
?:
MiddlewareRoutingItem
private
originalFetch
?:
typeof
fetch
private
readonly
bundlerService
:
DevBundlerService
private
readonly
bundlerService
:
DevBundlerService
private
staticPathsCache
:
LRUCache
<
private
staticPathsCache
:
LRUCache
<
UnwrapPromise
<
ReturnType
<
DevServer
[
'getStaticPaths'
]
>>
UnwrapPromise
<
ReturnType
<
DevServer
[
'getStaticPaths'
]
>>
...
...
packages/next/src/server/lib/router-utils/filesystem.ts
View file @
8c94014b
...
@@ -107,9 +107,6 @@ export async function setupFsCheck(opts: {
...
@@ -107,9 +107,6 @@ export async function setupFsCheck(opts: {
dev
:
boolean
dev
:
boolean
minimalMode
?:
boolean
minimalMode
?:
boolean
config
:
NextConfigComplete
config
:
NextConfigComplete
addDevWatcherCallback
?:
(
arg
:
(
files
:
Map
<
string
,
{
timestamp
:
number
}
>
)
=>
void
)
=>
void
})
{
})
{
const
getItemsLru
=
!
opts
.
dev
const
getItemsLru
=
!
opts
.
dev
?
new
LRUCache
<
FsOutput
|
null
>
(
1024
*
1024
,
function
length
(
value
)
{
?
new
LRUCache
<
FsOutput
|
null
>
(
1024
*
1024
,
function
length
(
value
)
{
...
...
packages/next/src/server/next-server.ts
View file @
8c94014b
...
@@ -122,8 +122,6 @@ import {
...
@@ -122,8 +122,6 @@ import {
export
*
from
'./base-server'
export
*
from
'./base-server'
declare
const
__non_webpack_require__
:
NodeRequire
// For module that can be both CJS or ESM
// For module that can be both CJS or ESM
const
dynamicImportEsmDefault
=
process
.
env
.
NEXT_MINIMAL
const
dynamicImportEsmDefault
=
process
.
env
.
NEXT_MINIMAL
?
(
id
:
string
)
=>
?
(
id
:
string
)
=>
...
@@ -251,7 +249,6 @@ export default class NextNodeServer extends BaseServer<
...
@@ -251,7 +249,6 @@ export default class NextNodeServer extends BaseServer<
protected
middlewareManifestPath
:
string
protected
middlewareManifestPath
:
string
private
_serverDistDir
:
string
|
undefined
private
_serverDistDir
:
string
|
undefined
private
imageResponseCache
?:
ResponseCache
private
imageResponseCache
?:
ResponseCache
private
registeredInstrumentation
:
boolean
=
false
protected
renderWorkersPromises
?:
Promise
<
void
>
protected
renderWorkersPromises
?:
Promise
<
void
>
protected
dynamicRoutes
?:
{
protected
dynamicRoutes
?:
{
match
:
import
(
'../shared/lib/router/utils/route-matcher'
).
RouteMatchFn
match
:
import
(
'../shared/lib/router/utils/route-matcher'
).
RouteMatchFn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment