Remove unused `events_by_room` (#10421)
It looks like it was first used and introduced in5130d80d79 (diff-8a4a36a7728107b2ccaff2cb405dbab229a1100fe50653a63d1aa9ac10ae45e8R305)
but the But the usage was removed in4c6a31cd6e (diff-8a4a36a7728107b2ccaff2cb405dbab229a1100fe50653a63d1aa9ac10ae45e8)
This commit is contained in:
parent
323452944e
commit
7387d6f624
|
@ -0,0 +1 @@
|
|||
Remove unused `events_by_room` code (tech debt).
|
|
@ -2010,10 +2010,6 @@ class PersistEventsStore:
|
|||
|
||||
Forward extremities are handled when we first start persisting the events.
|
||||
"""
|
||||
events_by_room: Dict[str, List[EventBase]] = {}
|
||||
for ev in events:
|
||||
events_by_room.setdefault(ev.room_id, []).append(ev)
|
||||
|
||||
query = (
|
||||
"INSERT INTO event_backward_extremities (event_id, room_id)"
|
||||
" SELECT ?, ? WHERE NOT EXISTS ("
|
||||
|
|
Loading…
Reference in New Issue