fix(core): remove deprecated and defunct wtf* apis (#33949)
These apis have been deprecated in v8, so they should stick around till v10, but since they are defunct we are removing them early so that they don't take up payload size. PR Close #33949
This commit is contained in:

committed by
Matias Niemelä

parent
420750bd05
commit
cf420194ed
@ -26,7 +26,6 @@ import {ComponentFactoryBoundToModule, ComponentFactoryResolver} from './linker/
|
||||
import {InternalNgModuleRef, NgModuleFactory, NgModuleRef} from './linker/ng_module_factory';
|
||||
import {InternalViewRef, ViewRef} from './linker/view_ref';
|
||||
import {isComponentResourceResolutionQueueEmpty, resolveComponentResources} from './metadata/resource_loading';
|
||||
import {WtfScopeFn, wtfCreateScope, wtfLeave} from './profile/profile';
|
||||
import {assertNgModuleType} from './render3/assert';
|
||||
import {ComponentFactory as R3ComponentFactory} from './render3/component_ref';
|
||||
import {setLocaleId} from './render3/i18n';
|
||||
@ -527,7 +526,6 @@ function optionsReducer<T extends Object>(dst: any, objs: T | T[]): T {
|
||||
@Injectable()
|
||||
export class ApplicationRef {
|
||||
/** @internal */
|
||||
static _tickScope: WtfScopeFn = wtfCreateScope('ApplicationRef#tick()');
|
||||
private _bootstrapListeners: ((compRef: ComponentRef<any>) => void)[] = [];
|
||||
private _views: InternalViewRef[] = [];
|
||||
private _runningTick: boolean = false;
|
||||
@ -678,7 +676,6 @@ export class ApplicationRef {
|
||||
throw new Error('ApplicationRef.tick is called recursively');
|
||||
}
|
||||
|
||||
const scope = ApplicationRef._tickScope();
|
||||
try {
|
||||
this._runningTick = true;
|
||||
for (let view of this._views) {
|
||||
@ -694,7 +691,6 @@ export class ApplicationRef {
|
||||
this._zone.runOutsideAngular(() => this._exceptionHandler.handleError(e));
|
||||
} finally {
|
||||
this._runningTick = false;
|
||||
wtfLeave(scope);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user