Skip to content

Commit

Permalink
refactor(core): remove deprecated parameter for ErrorHandler (angul…
Browse files Browse the repository at this point in the history
…ar#18759)

BREAKING CHANGE: `ErrorHandler` no longer takes a parameter as it was not used and deprecated since v4.

PR Close angular#18759
  • Loading branch information
ocombe authored and mhevery committed Aug 17, 2017
1 parent 2a62d9f commit 8f41326
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions packages/core/src/error_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ export class ErrorHandler {
*/
_console: Console = console;

constructor(
/**
* @deprecated since v4.0 parameter no longer has an effect, as ErrorHandler will never
* rethrow.
*/
deprecatedParameter?: boolean) {}

handleError(error: any): void {
const originalError = this._findOriginalError(error);
const context = this._findContext(error);
Expand Down
2 changes: 0 additions & 2 deletions tools/public_api_guard/core/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ export declare function enableProdMode(): void;

/** @stable */
export declare class ErrorHandler {
constructor(
deprecatedParameter?: boolean);
handleError(error: any): void;
}

Expand Down

0 comments on commit 8f41326

Please sign in to comment.