Skip to content

Commit 367c2e3

Browse files
committed
refactor(grids): drop maxLevelHeaderDepth dead code
1 parent 50b0274 commit 367c2e3

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

projects/igniteui-angular/grids/core/src/common/grid.interface.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ export interface GridType extends IGridDataBindable {
634634
/** The height of each row in the grid. Setting a constant height can solve problems with not showing all elements when scrolling */
635635
rowHeight: number;
636636
multiRowLayoutRowSize: number;
637-
maxLevelHeaderDepth: number;
638637
defaultRowHeight: number;
639638
/** The default font size, calculated for each element */
640639
_baseFontSize?: number;

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,18 +2770,6 @@ export abstract class IgxGridBaseDirective implements GridType,
27702770
this.notifyChanges();
27712771
}
27722772

2773-
/**
2774-
* @hidden @internal
2775-
*/
2776-
public get maxLevelHeaderDepth(): number {
2777-
if (this._maxLevelHeaderDepth === null) {
2778-
this._maxLevelHeaderDepth = this.hasColumnLayouts ?
2779-
this._columns.reduce((acc, col) => Math.max(acc, col.rowStart), 0) :
2780-
this._columns.reduce((acc, col) => Math.max(acc, col.level), 0);
2781-
}
2782-
return this._maxLevelHeaderDepth;
2783-
}
2784-
27852773
/**
27862774
* Gets the number of hidden columns.
27872775
*
@@ -3136,10 +3124,6 @@ export abstract class IgxGridBaseDirective implements GridType,
31363124
* @hidden
31373125
*/
31383126
protected _sortingExpressions: Array<ISortingExpression> = [];
3139-
/**
3140-
* @hidden
3141-
*/
3142-
protected _maxLevelHeaderDepth = 0;
31433127
/**
31443128
* @hidden
31453129
*/
@@ -7374,7 +7358,7 @@ export abstract class IgxGridBaseDirective implements GridType,
73747358
const columnLayoutColumns = collection.filter((col) => col.columnLayout || col.columnLayoutChild);
73757359
collection = columnLayoutColumns;
73767360
}
7377-
this._maxLevelHeaderDepth = null;
7361+
73787362
collection.forEach((column: IgxColumnComponent) => {
73797363
column.defaultWidth = this.columnWidthSetByUser ? this._columnWidth : column.defaultWidth ? column.defaultWidth : '';
73807364

projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ export abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirect
7979
return 'hierarchical';
8080
}
8181

82-
/**
83-
* @hidden
84-
*/
85-
public override get maxLevelHeaderDepth() {
86-
if (this._maxLevelHeaderDepth === null) {
87-
this._maxLevelHeaderDepth = this.columns.reduce((acc, col) => Math.max(acc, col.level), 0);
88-
}
89-
return this._maxLevelHeaderDepth;
90-
}
91-
9282
/* blazorSuppress */
9383
/**
9484
* Gets the outlet used to attach the grid's overlays to.

0 commit comments

Comments
 (0)