From 42058264de511ef58f63eb7e1adcfbf561856705 Mon Sep 17 00:00:00 2001 From: mup Date: Thu, 16 Oct 2025 13:42:14 +0200 Subject: [PATCH] wip --- src/common/calendar/gui/TimeView.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/common/calendar/gui/TimeView.ts b/src/common/calendar/gui/TimeView.ts index 40a791f5f6..46775dbd57 100644 --- a/src/common/calendar/gui/TimeView.ts +++ b/src/common/calendar/gui/TimeView.ts @@ -386,29 +386,6 @@ export class TimeView implements Component { size = maxSize - eventShift - arrayIndexToGridIndex } size += 1 - - let i = columnIndex + 1 - - while (i < columnIndex + size) { - if (i >= allColumns.length) { - break - } - const hasConflict = Array.from(allColumns[i].events.entries()).filter(([evId, eventData]) => { - const overlapRows = eventData.rowStart < eventRowData.rowEnd && eventData.rowEnd > eventRowData.rowStart - const blockers = this.blockingGroups.get(eventId) ?? [] - const alreadyInBlockers = blockers.some((e) => e.has(evId)) - - return !alreadyInBlockers && overlapRows - }) - - console.log(hasConflict, eventShift, i - columnIndex) - if (hasConflict.length > 0) { - size -= allColumns.length - i - 1 - break - } - - i++ - } } else { const myOriginalSize = 1 const columnsWithConflict = allColumns.slice(columnIndex + 1).reduce((prev, column) => {