chore(): remove debug and log statements (#18245)

fixes #18190
This commit is contained in:
Liam DeBeasi
2019-05-21 14:55:41 -04:00
committed by GitHub
parent 00a27dc37b
commit adaaf89737
8 changed files with 1 additions and 14 deletions

View File

@ -218,7 +218,6 @@ export class VirtualScroll implements ComponentInterface {
this.approxItemHeight,
cellIndex, offset, len
);
console.debug('[virtual] cells recalculated', cells.length);
this.cells = inplaceUpdate(this.cells, cells, cellIndex);
this.lastItemLen = this.items.length;
this.indexDirty = Math.max(offset - 1, 0);
@ -331,7 +330,6 @@ export class VirtualScroll implements ComponentInterface {
return;
}
if (cell.height !== height || cell.visible !== true) {
console.debug(`[virtual] cell height or visibility changed ${cell.height}px -> ${height}px`);
cell.visible = true;
cell.height = height;
this.indexDirty = Math.min(this.indexDirty, index);
@ -372,7 +370,6 @@ export class VirtualScroll implements ComponentInterface {
this.approxItemHeight,
0, 0, this.lastItemLen
);
console.debug('[virtual] cells recalculated', this.cells.length);
this.indexDirty = 0;
}
@ -388,7 +385,6 @@ export class VirtualScroll implements ComponentInterface {
this.heightIndex = resizeBuffer(this.heightIndex, this.cells.length);
this.totalHeight = calcHeightIndex(this.heightIndex, this.cells, index);
console.debug('[virtual] height index recalculated', this.heightIndex.length - index);
this.indexDirty = Infinity;
}