refactor(core): Removed depricated lockRunMode (#10763)
BREAKING CHANGE: previously deprecated lockRunMode was removed; see deprecation notice for migration instructions.
This commit is contained in:

committed by
vikerman

parent
87fe47737a
commit
2eb4ee8393
@ -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.
|
||||
|
Reference in New Issue
Block a user