Skip to content

Commit

Permalink
fix(common): remove unused parameters from the ngClass constructor (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
josephperrott authored and atscott committed Jan 8, 2024
1 parent f7c02e1 commit 1be6b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion goldens/public-api/common/index.md
Expand Up @@ -473,7 +473,7 @@ export class LowerCasePipe implements PipeTransform {

// @public
export class NgClass implements DoCheck {
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer2);
constructor(_ngEl: ElementRef, _renderer: Renderer2);
// (undocumented)
set klass(value: string);
// (undocumented)
Expand Down
5 changes: 1 addition & 4 deletions packages/common/src/directives/ng_class.ts
Expand Up @@ -67,10 +67,7 @@ export class NgClass implements DoCheck {

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

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

@Input('class')
set klass(value: string) {
Expand Down

0 comments on commit 1be6b0a

Please sign in to comment.