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

@ -249,19 +249,10 @@ export class PlatformRef_ extends PlatformRef {
constructor(private _injector: Injector) { super(); }
/**
* @deprecated
*/
registerDisposeListener(dispose: () => void): void { this.onDestroy(dispose); }
onDestroy(callback: () => void): void { this._destroyListeners.push(callback); }
get injector(): Injector { return this._injector; }
/**
* @deprecated
*/
get disposed() { return this.destroyed; }
get destroyed() { return this._destroyed; }
destroy() {
@ -273,11 +264,6 @@ export class PlatformRef_ extends PlatformRef {
this._destroyed = true;
}
/**
* @deprecated
*/
dispose(): void { this.destroy(); }
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>): Promise<NgModuleRef<M>> {
return this._bootstrapModuleFactoryWithZone(moduleFactory, null);
}