Skip to content

Commit 94918b8

Browse files
committed
refactor(core): remove unused field in ApplicationRef class
This commit removes an unused field in the `ApplicationRef` class. Most likely the usage of the field was removed earlier.
1 parent 1bdc3f1 commit 94918b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/application/application_ref.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ export function optionsReducer<T extends Object>(dst: T, objs: T | T[]): T {
300300
*/
301301
@Injectable({providedIn: 'root'})
302302
export class ApplicationRef {
303-
/** @internal */
304-
private _bootstrapListeners: ((compRef: ComponentRef<any>) => void)[] = [];
305303
/** @internal */
306304
_runningTick: boolean = false;
307305
private _destroyed = false;
@@ -792,7 +790,7 @@ export class ApplicationRef {
792790
'`multi: true` provider.',
793791
);
794792
}
795-
[...this._bootstrapListeners, ...listeners].forEach((listener) => listener(componentRef));
793+
listeners.forEach((listener) => listener(componentRef));
796794
}
797795

798796
/** @internal */
@@ -811,7 +809,6 @@ export class ApplicationRef {
811809

812810
// Release all references.
813811
this._views = [];
814-
this._bootstrapListeners = [];
815812
this._destroyListeners = [];
816813
}
817814
}

0 commit comments

Comments
 (0)