Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove an unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Feb 25, 2021
1 parent 7ee8c5a commit fb83f9a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions synapse/storage/purge_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ async def _find_unreferenced_groups(self, state_groups: Set[int]) -> Set[int]:
Returns:
The set of state groups that can be deleted.
"""
# Graph of state group -> previous group
graph = {}

# Set of events that we have found to be referenced by events
referenced_groups = set()

Expand Down Expand Up @@ -111,8 +108,6 @@ async def _find_unreferenced_groups(self, state_groups: Set[int]) -> Set[int]:
next_to_search |= prevs
state_groups_seen |= prevs

graph.update(edges)

to_delete = state_groups_seen - referenced_groups

return to_delete

0 comments on commit fb83f9a

Please sign in to comment.