From 4df451b68335963958e262dda64e7fc43c8c5206 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 23 May 2024 22:56:24 -0400 Subject: [PATCH] Remove addAllRoutes Signed-off-by: Craig Perkins --- src/core/server/http/router/router.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/server/http/router/router.ts b/src/core/server/http/router/router.ts index 3d58d4c3bfda..c99134e5ce8f 100644 --- a/src/core/server/http/router/router.ts +++ b/src/core/server/http/router/router.ts @@ -130,8 +130,6 @@ export interface IRouter { * @internal */ getRoutes: () => RouterRoute[]; - - addAllRoutes: (routesToAdd: RouterRoute[]) => void; } export type ContextEnhancer = ( @@ -263,10 +261,6 @@ export class Router implements IRouter { return [...this.routes]; } - public addAllRoutes(routesToAdd: RouterRoute[]) { - return [...this.routes, ...routesToAdd]; - } - public handleLegacyErrors = wrapErrors; private async handle({