From e58c58529578e6db131a3b14a4a9fa8229695930 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 21 Aug 2024 12:50:12 +0000 Subject: [PATCH] refactor(@angular/ssr): remove duplicate `resetAngularServerApp` method The `resetAngularServerApp` method was identical to `destroyAngularServerApp` and was mistakenly retained due to an incorrect merge. This commit removes the redundant method. --- packages/angular/ssr/src/app.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/angular/ssr/src/app.ts b/packages/angular/ssr/src/app.ts index 81f9fdd66628..6408403193c2 100644 --- a/packages/angular/ssr/src/app.ts +++ b/packages/angular/ssr/src/app.ts @@ -89,14 +89,6 @@ export function getOrCreateAngularServerApp(): AngularServerApp { return (angularServerApp ??= new AngularServerApp()); } -/** - * Resets the instance of `AngularServerApp` to undefined, effectively - * clearing the reference. Use this to recreate the instance. - */ -export function resetAngularServerApp(): void { - angularServerApp = undefined; -} - /** * Destroys the existing `AngularServerApp` instance, releasing associated resources and resetting the * reference to `undefined`.