diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-02-07 15:30:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 15:30:26 +0000 |
commit | e1d858984d71b6edf56e1024f1475224bfa49054 (patch) | |
tree | cfb5b1c28682d043e28c77a37d3de58e5277c199 /synapse/storage | |
parent | Add a `make_event_from_dict` method (#6858) (diff) | |
download | synapse-e1d858984d71b6edf56e1024f1475224bfa49054.tar.xz |
Remove unused `get_room_stats_state` method. (#6869)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/data_stores/main/stats.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/synapse/storage/data_stores/main/stats.py b/synapse/storage/data_stores/main/stats.py index 7af1495e47..380c1ec7da 100644 --- a/synapse/storage/data_stores/main/stats.py +++ b/synapse/storage/data_stores/main/stats.py @@ -271,31 +271,6 @@ class StatsStore(StateDeltasStore): return slice_list - def get_room_stats_state(self, room_id): - """ - Returns the current room_stats_state for a room. - - Args: - room_id (str): The ID of the room to return state for. - - Returns (dict): - Dictionary containing these keys: - "name", "topic", "canonical_alias", "avatar", "join_rules", - "history_visibility" - """ - return self.db.simple_select_one( - "room_stats_state", - {"room_id": room_id}, - retcols=( - "name", - "topic", - "canonical_alias", - "avatar", - "join_rules", - "history_visibility", - ), - ) - @cached() def get_earliest_token_for_stats(self, stats_type, id): """ |