From 9288566a7f829b35cd3023d5c893e683324f6521 Mon Sep 17 00:00:00 2001 From: arc-alex Date: Tue, 16 Sep 2025 16:38:11 +0200 Subject: [PATCH] chore: remove unused code --- .../src/views/countdown/countdown.utils.ts | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/apps/client/src/views/countdown/countdown.utils.ts b/apps/client/src/views/countdown/countdown.utils.ts index a7f603e81..12d825bbd 100644 --- a/apps/client/src/views/countdown/countdown.utils.ts +++ b/apps/client/src/views/countdown/countdown.utils.ts @@ -150,34 +150,6 @@ export function getOrderedSubscriptions(subscriptions: En return playableEvents.filter((event) => subscriptions.includes(event.id)); } -/** - * Checks through the rundown whether the current event is linked to the loaded event - */ -export function isLinkedToLoadedEvent(events: OntimeEvent[], loadedId: EntryId | null, currentId: EntryId): boolean { - // if nothing is loaded, we return true to simplify the logic - if (!loadedId) { - return true; - } - - const loadedIndex = events.findIndex((event) => event.id === loadedId); - if (loadedIndex === -1) { - return true; - } - - for (let i = loadedIndex; i < events.length; i++) { - const event = events[i]; - if (event.id === currentId) { - return true; - } - - if (event.linkStart === null) { - return false; - } - } - - return true; -} - export function isOutsideRange(a: number, b: number): boolean { return Math.abs(a - b) > MILLIS_PER_MINUTE; }