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>,
) {
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)
}
}