Skip to content

Commit 746799f

Browse files
devversionkara
authored andcommitted
chore(tabs): remove unused initialized check (#7476)
1 parent 085827f commit 746799f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/lib/tabs/tab-group.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import {
1010
AfterContentChecked,
1111
AfterContentInit,
12-
AfterViewChecked,
1312
ChangeDetectionStrategy,
1413
ChangeDetectorRef,
1514
Component,
@@ -78,15 +77,12 @@ export const _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(MatTabGroupBa
7877
},
7978
})
8079
export class MatTabGroup extends _MatTabGroupMixinBase implements AfterContentInit,
81-
AfterContentChecked, AfterViewChecked, OnDestroy, CanColor, CanDisableRipple {
80+
AfterContentChecked, OnDestroy, CanColor, CanDisableRipple {
8281

8382
@ContentChildren(MatTab) _tabs: QueryList<MatTab>;
8483

8584
@ViewChild('tabBodyWrapper') _tabBodyWrapper: ElementRef;
8685

87-
/** Whether this component has been initialized. */
88-
private _isInitialized: boolean = false;
89-
9086
/** The tab index that should be selected after the content has been checked. */
9187
private _indexToSelect: number | null = 0;
9288

@@ -218,14 +214,6 @@ export class MatTabGroup extends _MatTabGroupMixinBase implements AfterContentIn
218214
this._tabLabelSubscription.unsubscribe();
219215
}
220216

221-
/**
222-
* Waits one frame for the view to update, then updates the ink bar
223-
* Note: This must be run outside of the zone or it will create an infinite change detection loop.
224-
*/
225-
ngAfterViewChecked(): void {
226-
this._isInitialized = true;
227-
}
228-
229217
_focusChanged(index: number) {
230218
this.focusChange.emit(this._createChangeEvent(index));
231219
}

0 commit comments

Comments
 (0)