From e82019d1d69d9487baeba0a9340b737723d77d30 Mon Sep 17 00:00:00 2001 From: sanao1006 Date: Sat, 16 Sep 2023 12:04:48 +0900 Subject: [PATCH] Deleted unused `TimetableItemList.getDayTimetableItems()` --- .../confsched2023/model/TimetableItemList.kt | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/TimetableItemList.kt b/core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/TimetableItemList.kt index 4913b9e26..cdf945888 100644 --- a/core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/TimetableItemList.kt +++ b/core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2023/model/TimetableItemList.kt @@ -2,16 +2,7 @@ package io.github.droidkaigi.confsched2023.model import kotlinx.collections.immutable.PersistentList import kotlinx.collections.immutable.persistentListOf -import kotlinx.collections.immutable.toPersistentList -public data class TimetableItemList( +data class TimetableItemList( val timetableItems: PersistentList = persistentListOf(), -) : PersistentList by timetableItems { - public fun getDayTimetableItems(day: DroidKaigi2023Day): TimetableItemList { - return TimetableItemList( - timetableItems.filter { - it.startsAt in day.start..day.end - }.toPersistentList(), - ) - } -} +) : PersistentList by timetableItems