diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-10-12 10:46:50 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-10-12 10:46:50 +0100 |
commit | 58ef32e272a7550a42cacc8eeee5e0f366d02bd6 (patch) | |
tree | 54d818c4004a9ca34544ddcdc9e46bab47dd143d /synapse | |
parent | Use `yieldable_gather_results` helper because it's more elegant (diff) | |
download | synapse-58ef32e272a7550a42cacc8eeee5e0f366d02bd6.tar.xz |
Revert "Add a stub implementation of `StateFilter.approx_difference`"
This reverts commit 363565e6ac803c92786d46e29badfd342e4dfa76 because a proper implementation is now in develop.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/state.py | 8 |
1 files changed, 0 insertions, 8 deletions
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. |