Skip to content

Commit

Permalink
refactor(@angular/ssr): remove duplicate resetAngularServerApp method
Browse files Browse the repository at this point in the history
The `resetAngularServerApp` method was identical to `destroyAngularServerApp` and was mistakenly retained due to an incorrect merge. This commit removes the redundant method.
  • Loading branch information
alan-agius4 committed Aug 21, 2024
1 parent 60d24b2 commit e58c585
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/angular/ssr/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit e58c585

Please sign in to comment.