mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Remove unused newTimelineById
This commit is contained in:
-2
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user