From 060c1a153c5557508a9b97e4c91626b1910f5697 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 8 Nov 2022 11:32:25 -0800 Subject: remove unnecessary event context method --- synapse/events/snapshot.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py index 86763ac068..1c0e96bec7 100644 --- a/synapse/events/snapshot.py +++ b/synapse/events/snapshot.py @@ -115,25 +115,6 @@ class EventContext: partial_state=partial_state, ) - @staticmethod - def without_state_group( - storage: "StorageControllers", - partial_state: bool = False, - state_group_before_event: Optional[int] = None, - state_delta_due_to_event: Optional[StateMap[str]] = None, - prev_group: Optional[int] = None, - delta_ids: Optional[StateMap[str]] = None, - ) -> "EventContext": - return EventContext( - storage=storage, - state_group=None, - state_group_before_event=state_group_before_event, - state_delta_due_to_event=state_delta_due_to_event, - prev_group=prev_group, - delta_ids=delta_ids, - partial_state=partial_state, - ) - @staticmethod def for_outlier( storage: "StorageControllers", -- cgit 1.4.1