From 58ef32e272a7550a42cacc8eeee5e0f366d02bd6 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Tue, 12 Oct 2021 10:46:50 +0100 Subject: Revert "Add a stub implementation of `StateFilter.approx_difference`" This reverts commit 363565e6ac803c92786d46e29badfd342e4dfa76 because a proper implementation is now in develop. --- synapse/storage/state.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'synapse') diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 806b0016d9..5e86befde4 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -193,14 +193,6 @@ class StateFilter: include_others=True, ) - def approx_difference(self, subtrahend: "StateFilter") -> "StateFilter": - """ - Stub implementation! Satisfies the condition that it's an overestimate. - """ - if self == subtrahend: - return StateFilter.none() - return self - def make_sql_filter_clause(self) -> Tuple[str, List[str]]: """Converts the filter to an SQL clause. -- cgit 1.5.1