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:
Julie Ralph
2016-08-17 16:36:10 -07:00
committed by Kara
parent 0b62b6f783
commit beb79e75bf
9 changed files with 1 additions and 72 deletions

View File

@ -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; };
}

View File

@ -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;