refactor(various): remove a few lingering but unused deprecated apis (#10896)
Removes deprecated APPLICATION_COMMON_PROVIDERS, as well as some internal apis that were deprecated.
This commit is contained in:
@ -1,36 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ApplicationRef, ComponentFactory, ComponentRef, Injectable, Injector, NgZone, Type} from '../index';
|
||||
|
||||
|
||||
/**
|
||||
* A no-op implementation of {@link ApplicationRef}, useful for testing.
|
||||
*/
|
||||
@Injectable()
|
||||
export class MockApplicationRef extends ApplicationRef {
|
||||
registerBootstrapListener(listener: (ref: ComponentRef<any>) => void): void {}
|
||||
|
||||
registerDisposeListener(dispose: () => void): void {}
|
||||
|
||||
bootstrap<C>(componentFactory: ComponentFactory<C>): ComponentRef<C> { return null; }
|
||||
|
||||
get injector(): Injector { return null; };
|
||||
|
||||
get zone(): NgZone { return null; };
|
||||
|
||||
run(callback: Function): any { return null; }
|
||||
|
||||
waitForAsyncInitializers(): Promise<any> { return null; }
|
||||
|
||||
dispose(): void {}
|
||||
|
||||
tick(): void {}
|
||||
|
||||
get componentTypes(): Type<any>[] { return null; };
|
||||
}
|
@ -17,7 +17,6 @@ export {MockAnimationPlayer} from './mock_animation_player';
|
||||
export {inject} from './test_bed';
|
||||
export * from './logger';
|
||||
export * from './ng_zone_mock';
|
||||
export * from './mock_application_ref';
|
||||
export * from './test_component_builder';
|
||||
|
||||
export var proxy: ClassDecorator = (t: any /** TODO #9100 */) => t;
|
||||
|
Reference in New Issue
Block a user