From 2eb4ee8393a497bd861145380855a75976570759 Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Fri, 12 Aug 2016 17:40:22 -0700 Subject: [PATCH] refactor(core): Removed depricated lockRunMode (#10763) BREAKING CHANGE: previously deprecated lockRunMode was removed; see deprecation notice for migration instructions. --- modules/@angular/core/index.ts | 2 +- modules/@angular/core/src/application_ref.ts | 11 ----------- tools/public_api_guard/core/index.d.ts | 3 --- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/modules/@angular/core/index.ts b/modules/@angular/core/index.ts index 6704835aa9..cc1206dd63 100644 --- a/modules/@angular/core/index.ts +++ b/modules/@angular/core/index.ts @@ -14,7 +14,7 @@ export * from './src/metadata'; export * from './src/util'; export * from './src/di'; -export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, lockRunMode, isDevMode, createPlatformFactory} from './src/application_ref'; +export {createPlatform, assertPlatform, disposePlatform, getPlatform, coreBootstrap, coreLoadAndBootstrap, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory} from './src/application_ref'; export {APP_ID, PACKAGE_ROOT_URL, PLATFORM_INITIALIZER, APP_BOOTSTRAP_LISTENER} from './src/application_tokens'; export {APP_INITIALIZER, ApplicationInitStatus} from './src/application_init'; export * from './src/zone'; diff --git a/modules/@angular/core/src/application_ref.ts b/modules/@angular/core/src/application_ref.ts index 01a17ca0b4..257f459912 100644 --- a/modules/@angular/core/src/application_ref.ts +++ b/modules/@angular/core/src/application_ref.ts @@ -46,17 +46,6 @@ export function enableProdMode(): void { _devMode = false; } -/** - * Locks the run mode of Angular. After this has been called, - * it can't be changed any more. I.e. `isDevMode()` will always - * return the same value. - * - * @deprecated This is a noop now. {@link isDevMode} automatically locks the run mode on first call. - */ -export function lockRunMode(): void { - console.warn('lockRunMode() is deprecated and not needed any more.'); -} - /** * Returns whether Angular is in development mode. After called once, * the value is locked and won't change any more. diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index 103765b761..b956e48644 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -782,9 +782,6 @@ export declare class KeyValueDiffers { /** @experimental */ export declare const LOCALE_ID: OpaqueToken; -/** @deprecated */ -export declare function lockRunMode(): void; - /** @experimental */ export declare class ModuleWithComponentFactories { componentFactories: ComponentFactory[];