Skip to content

Commit be0601d

Browse files
committed
refactor(igxTreeGrid): Removes unused methods
1 parent f9125d4 commit be0601d

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid-row.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class IgxTreeGridRowComponent extends IgxRowDirective<IgxTreeGridComponen
5353
* ```
5454
*/
5555
public get pinned(): boolean {
56-
return this.grid.isRowInPinnedRecordsStructure(this._treeRow);
56+
return this.grid.isRecordPinned(this.rowData);
5757
}
5858

5959
/**

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -538,20 +538,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
538538
}
539539
}
540540

541-
/**
542-
* @hidden @internal
543-
*/
544-
public isRowInPinnedRecordsStructure(rec): boolean {
545-
let inStructure = false;
546-
const rowId = this.primaryKey ? rec.data[this.primaryKey] : rec.data;
547-
this._pinnedRecordIDs.forEach(pinnedRecord => {
548-
if (pinnedRecord === rowId) {
549-
inStructure = true;
550-
}
551-
});
552-
return inStructure;
553-
}
554-
555541
/** @hidden */
556542
public deleteRowById(rowId: any) {
557543
// if this is flat self-referencing data, and CascadeOnDelete is set to true

0 commit comments

Comments
 (0)