Skip to content

Commit

Permalink
Merge pull request #1244 from sanao1006/Remove_unused_TimetableItemLi…
Browse files Browse the repository at this point in the history
…st.getDayTimetableItems()

Deleted unused `TimetableItemList.getDayTimetableItems()`
  • Loading branch information
takahirom authored Sep 16, 2023
2 parents b98cd67 + e82019d commit 193e4a1
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TimetableItem> = persistentListOf(),
) : PersistentList<TimetableItem> by timetableItems {
public fun getDayTimetableItems(day: DroidKaigi2023Day): TimetableItemList {
return TimetableItemList(
timetableItems.filter {
it.startsAt in day.start..day.end
}.toPersistentList(),
)
}
}
) : PersistentList<TimetableItem> by timetableItems

0 comments on commit 193e4a1

Please sign in to comment.