Remove unused newTimelineById

This commit is contained in:
Benoit Marty 2024-04-29 14:09:06 +02:00
parent 4704b1229b
commit 1be2e183c8

View file

@ -81,7 +81,6 @@ class TimelineItemsFactory @Inject constructor(
roomMembers: List<RoomMember>,
) {
val newTimelineItemStates = ArrayList<TimelineItem>()
val newTimelineById = mutableMapOf<String, TimelineItem>()
for (index in diffCache.indices().reversed()) {
val cacheItem = diffCache.get(index)
if (cacheItem == null) {
@ -98,7 +97,6 @@ class TimelineItemsFactory @Inject constructor(
} else {
cacheItem
}
newTimelineById[updatedItem.identifier()] = updatedItem
newTimelineItemStates.add(updatedItem)
}
}