Skip to content

Commit 61fd937

Browse files
committed
remove bug hunting code
1 parent b9d441f commit 61fd937

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/vs/base/browser/ui/list/listView.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,6 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
282282
private insertItemInDOM(index: number, beforeElement: HTMLElement | null): void {
283283
const item = this.items[index];
284284

285-
if (!item) {
286-
console.log(this.items);
287-
throw new Error(`Got index ${index} and there are ${this.items.length} items. File issue to joao!`);
288-
}
289-
290285
if (!item.row) {
291286
item.row = this.cache.alloc(item.templateId);
292287
}
@@ -316,12 +311,6 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
316311

317312
private removeItemFromDOM(index: number): void {
318313
const item = this.items[index];
319-
320-
if (!item) {
321-
console.log(this.items);
322-
throw new Error(`Got index ${index} and there are ${this.items.length} items. File issue to joao!`);
323-
}
324-
325314
const renderer = this.renderers.get(item.templateId);
326315

327316
if (renderer.disposeElement) {

0 commit comments

Comments
 (0)