Remove unused newTimelineById

This commit is contained in:
Benoit Marty 2024-04-29 14:09:06 +02:00
parent b511f24355
commit 65db3d597a

View file

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