summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-05-11 16:55:57 +0100
committerGitHub <noreply@github.com>2020-05-11 16:55:57 +0100
commita8580c5f1986e8d2f4bf9cf64190ac5e3d84aaf6 (patch)
tree3260c606d288162755071119d8565efb0bfdd259 /synapse
parentMerge branch 'release-v1.13.0' into develop (diff)
downloadsynapse-a8580c5f1986e8d2f4bf9cf64190ac5e3d84aaf6.tar.xz
Remove unused store method get_hosts_in_room (#7448)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/data_stores/main/roommember.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/synapse/storage/data_stores/main/roommember.py b/synapse/storage/data_stores/main/roommember.py
index d5bd0cb5cf..ae9a76713c 100644
--- a/synapse/storage/data_stores/main/roommember.py
+++ b/synapse/storage/data_stores/main/roommember.py
@@ -153,16 +153,6 @@ class RoomMemberWorkerStore(EventsWorkerStore):
                 self._check_safe_current_state_events_membership_updated_txn,
             )
 
-    @cachedInlineCallbacks(max_entries=100000, iterable=True, cache_context=True)
-    def get_hosts_in_room(self, room_id, cache_context):
-        """Returns the set of all hosts currently in the room
-        """
-        user_ids = yield self.get_users_in_room(
-            room_id, on_invalidate=cache_context.invalidate
-        )
-        hosts = frozenset(get_domain_from_id(user_id) for user_id in user_ids)
-        return hosts
-
     @cached(max_entries=100000, iterable=True)
     def get_users_in_room(self, room_id):
         return self.db.runInteraction(