Skip to content

Commit 394956b

Browse files
committed
fix(button-toggle): remove unused property and type ToggleType
1 parent 96c24f5 commit 394956b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/material/button-toggle/button-toggle.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ import {
3939
} from '@angular/material/core';
4040

4141

42-
/** Acceptable types for a button toggle. */
43-
export type ToggleType = 'checkbox' | 'radio';
44-
4542
/** Possible appearance styles for the button toggle. */
4643
export type MatButtonToggleAppearance = 'legacy' | 'standard';
4744

@@ -411,9 +408,6 @@ export class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit
411408
*/
412409
@Input('aria-labelledby') ariaLabelledby: string | null = null;
413410

414-
/** Type of the button toggle. Either 'radio' or 'checkbox'. */
415-
_type: ToggleType;
416-
417411
@ViewChild('button') _buttonElement: ElementRef<HTMLButtonElement>;
418412

419413
/** The parent button toggle group (exclusive selection). Optional. */
@@ -494,7 +488,6 @@ export class MatButtonToggle extends _MatButtonToggleMixinBase implements OnInit
494488
ngOnInit() {
495489
const group = this.buttonToggleGroup;
496490
this._isSingleSelector = group && !group.multiple;
497-
this._type = this._isSingleSelector ? 'radio' : 'checkbox';
498491
this.id = this.id || `mat-button-toggle-${_uniqueIdCounter++}`;
499492

500493
if (this._isSingleSelector) {

0 commit comments

Comments
 (0)