Skip to content

Commit 5f89250

Browse files
committed
chore(*): Remove unused methods and few lint fixes.
1 parent c87116e commit 5f89250

File tree

5 files changed

+4
-19
lines changed

5 files changed

+4
-19
lines changed

projects/igniteui-angular/src/lib/grids/common/crud.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class IgxEditRow {
5050
}
5151

5252
export class IgxAddRow extends IgxEditRow {
53-
public isAddRow: boolean = true;
53+
public isAddRow = true;
5454

5555
public createEditEventArgs(includeNewValue = true, event?: Event): IGridEditEventArgs {
5656
const args = super.createEditEventArgs(includeNewValue, event);

projects/igniteui-angular/src/lib/grids/row.directive.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ export class IgxRowDirective<T extends IgxGridBaseDirective & GridType> implemen
139139
}
140140

141141
public get addRowUI(): any {
142-
return this.grid.crudService.row && this.grid.crudService.row.getClassName() === IgxAddRow.name && this.grid.crudService.row.id === this.rowID;
142+
return this.grid.crudService.row &&
143+
this.grid.crudService.row.getClassName() === IgxAddRow.name &&
144+
this.grid.crudService.row.id === this.rowID;
143145
}
144146

145147
@HostBinding('style.min-height.px')

projects/igniteui-angular/src/lib/services/transaction/base-transaction.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ export class IgxBaseTransactionService<T extends Transaction, S extends State> i
7272
return result;
7373
}
7474

75-
public getAggregatedPendingAddChanges(mergeChanges: boolean): T[] {
76-
return [];
77-
}
78-
7975
/**
8076
* @inheritdoc
8177
*/

projects/igniteui-angular/src/lib/services/transaction/igx-transaction.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,6 @@ export class IgxTransactionService<T extends Transaction, S extends State> exten
5959
return result;
6060
}
6161

62-
public getAggregatedPendingAddChanges(mergeChanges: boolean): T[] {
63-
const result: T[] = [];
64-
this._pendingStates.forEach((state: S, key: any) => {
65-
if (state.type === TransactionType.ADD) {
66-
const value = mergeChanges ? this.mergeValues(state.recordRef, state.value) : state.value;
67-
result.push({ id: key, newValue: value, type: state.type } as T);
68-
}
69-
});
70-
return result;
71-
}
72-
7362
/**
7463
* @inheritdoc
7564
*/

projects/igniteui-angular/src/lib/services/transaction/transaction.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ export interface TransactionService<T extends Transaction, S extends State> {
108108
*/
109109
getAggregatedChanges(mergeChanges: boolean): T[];
110110

111-
getAggregatedPendingAddChanges(mergeChanges: boolean): T[];
112-
113111
/**
114112
* Returns the state of the record with provided id
115113
*

0 commit comments

Comments
 (0)