Skip to content

Commit 7e2a97d

Browse files
committed
chore(*): fix unused var errors
1 parent 9c0eb40 commit 7e2a97d

File tree

12 files changed

+13
-14
lines changed

12 files changed

+13
-14
lines changed

e2e/cypress/plugins/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Plugins enable you to tap into, modify, or extend the internal behavior of Cypress
22
// For more info, visit https://on.cypress.io/plugins-api
3-
module.exports = (on, config) => {}
3+
module.exports = (_on, _config) => {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Plugins enable you to tap into, modify, or extend the internal behavior of Cypress
22
// For more info, visit https://on.cypress.io/plugins-api
3-
module.exports = (on, config) => {}
3+
module.exports = (_on, _config) => {}

projects/igniteui-angular/src/lib/core/selection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class IgxSelectionAPIService {
177177
* @param componentID ID of the component, which we add new items to.
178178
* @param itemIDs Array of IDs of the items to add to component selection.
179179
*/
180-
public deselect_items(componentID: string, itemID: any[], clearSelection?: boolean) {
180+
public deselect_items(componentID: string, itemID: any[], _clearSelection?: boolean) {
181181
this.set(componentID, this.delete_items(componentID, itemID));
182182
}
183183

projects/igniteui-angular/src/lib/core/touch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class HammerGesturesManager {
127127
* @param element The DOM element used to create the manager on.
128128
*/
129129
public getManagerForElement(element: EventTarget): HammerManager {
130-
const result = this._hammerManagers.filter((value, index, array) => value.element === element);
130+
const result = this._hammerManagers.filter(value => value.element === element);
131131
return result.length ? result[0].manager : null;
132132
}
133133

projects/igniteui-angular/src/lib/data-operations/filtering-condition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class IgxBooleanFilteringOperand extends IgxFilteringOperand {
7777
name: 'all',
7878
isUnary: true,
7979
iconName: 'select-all',
80-
logic: (target: boolean) => true
80+
logic: (_target: boolean) => true
8181
}, {
8282
name: 'true',
8383
isUnary: true,

projects/igniteui-angular/src/lib/data-operations/pivot-sort-strategy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export class DefaultPivotGridRecordSortingStrategy extends DefaultSortingStrateg
1717
valueResolver: (obj: any, key: string, isDate?: boolean) => any,
1818
isDate?: boolean,
1919
isTime?: boolean,
20-
grid?: PivotGridType) {
20+
_grid?: PivotGridType) {
2121
const reverse = (dir === SortingDirection.Desc ? -1 : 1);
2222
const cmpFunc = (obj1, obj2) => this.compareObjects(obj1, obj2, fieldName, reverse, ignoreCase, this.getFieldValue, isDate, isTime);
2323
return this.arraySort(data, cmpFunc);
2424
}
2525

26-
protected getFieldValue(obj: IPivotGridRecord, key: string, isDate: boolean = false, isTime: boolean = false): any {
26+
protected getFieldValue(obj: IPivotGridRecord, key: string, _isDate: boolean = false, _isTime: boolean = false): any {
2727
return obj.aggregationValues.get(key);
2828
}
2929
}
@@ -52,7 +52,7 @@ export class DefaultPivotSortingStrategy extends DefaultSortingStrategy {
5252
return this.arraySort(data, cmpFunc);
5353
}
5454

55-
protected getFieldValue(obj: any, key: string, isDate: boolean = false, isTime: boolean = false): any {
55+
protected getFieldValue(obj: any, key: string, _isDate: boolean = false, isTime: boolean = false): any {
5656
let resolvedValue = PivotUtil.extractValueFromDimension(this.dimension, obj) || obj[0];
5757
const formatAsDate = this.dimension.dataType === GridColumnDataType.Date || this.dimension.dataType === GridColumnDataType.DateTime;
5858
if (formatAsDate) {

projects/igniteui-angular/src/lib/data-operations/pivot-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class DimensionValuesFilteringStrategy extends FilteringStrategy {
131131
super();
132132
}
133133

134-
protected getFieldValue(rec: any, fieldName: string, isDate: boolean = false, isTime: boolean = false,
134+
protected getFieldValue(rec: any, fieldName: string, _isDate: boolean = false, _isTime: boolean = false,
135135
grid?: PivotGridType): any {
136136
const allDimensions = grid.allDimensions;
137137
const enabledDimensions = allDimensions.filter(x => x && x.enabled);

projects/igniteui-angular/src/lib/directives/filter/filter.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
Output,
1010
Pipe,
1111
PipeTransform,
12-
Renderer2,
1312
SimpleChanges
1413
} from '@angular/core';
1514

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7550,7 +7550,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
75507550
column.resetCaches();
75517551
}
75527552

7553-
protected buildDataView(data: any[]) {
7553+
protected buildDataView(_data: any[]) {
75547554
this._dataView = this.isRowPinningToTop ?
75557555
[...this.pinnedDataView, ...this.unpinnedDataView] :
75567556
[...this.unpinnedDataView, ...this.pinnedDataView];

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class IgxGridNavigationService {
196196
return row.expression || row.detailsData ? false : !this.isColumnFullyVisible(visibleColIndex);
197197
}
198198

199-
public shouldPerformVerticalScroll(targetRowIndex: number, visibleColIndex: number): boolean {
199+
public shouldPerformVerticalScroll(targetRowIndex: number, _visibleColIndex: number): boolean {
200200
if (this.grid.isRecordPinnedByViewIndex(targetRowIndex)) {
201201
return false;
202202
}

0 commit comments

Comments
 (0)