Skip to content

Commit c22b513

Browse files
josephperrottatscott
authored andcommitted
fix(common): remove unused parameters from the ngClass constructor (#53831)
Remove unused parameters which were only being kept because of a downstream usage in flex layout which is deprecated and end of life PR Close #53831
1 parent 8e49e38 commit c22b513

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

goldens/public-api/common/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ export class LowerCasePipe implements PipeTransform {
473473

474474
// @public
475475
export class NgClass implements DoCheck {
476-
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer2);
476+
constructor(_ngEl: ElementRef, _renderer: Renderer2);
477477
// (undocumented)
478478
set klass(value: string);
479479
// (undocumented)

packages/common/src/directives/ng_class.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ export class NgClass implements DoCheck {
6767

6868
private stateMap = new Map<string, CssClassState>();
6969

70-
constructor(
71-
// leaving references to differs in place since flex layout is extending NgClass...
72-
private _iterableDiffers: IterableDiffers, private _keyValueDiffers: KeyValueDiffers,
73-
private _ngEl: ElementRef, private _renderer: Renderer2) {}
70+
constructor(private _ngEl: ElementRef, private _renderer: Renderer2) {}
7471

7572
@Input('class')
7673
set klass(value: string) {

0 commit comments

Comments
 (0)