summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-05-17 10:20:51 +0100
committerMark Haines <mark.haines@matrix.org>2016-05-17 10:20:51 +0100
commit526bf8126f4a865cf7d331f81dec5af42b41b01d (patch)
tree71b6969dc6785e03e20eaca7d771bde7ece1eab2 /synapse/handlers/room_member.py
parentMerge branch 'develop' into markjh/member_cleanup (diff)
downloadsynapse-526bf8126f4a865cf7d331f81dec5af42b41b01d.tar.xz
Remove unused get_joined_rooms_for_user
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room_member.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 4e3c1c1c96..7e616f44fd 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -398,21 +398,6 @@ class RoomMemberHandler(BaseHandler):
             defer.returnValue(UserID.from_string(invite.sender))
 
     @defer.inlineCallbacks
-    def get_joined_rooms_for_user(self, user):
-        """Returns a list of roomids that the user has any of the given
-        membership states in."""
-
-        rooms = yield self.store.get_rooms_for_user(
-            user.to_string(),
-        )
-
-        # For some reason the list of events contains duplicates
-        # TODO(paul): work out why because I really don't think it should
-        room_ids = set(r.room_id for r in rooms)
-
-        defer.returnValue(room_ids)
-
-    @defer.inlineCallbacks
     def do_3pid_invite(
             self,
             room_id,