summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-09 14:32:17 +0000
committerErik Johnston <erik@matrix.org>2016-02-09 14:32:17 +0000
commitfeb294d552ac58b867142118c3d19f0b11b2f384 (patch)
tree5740aff2a320a805a33933fddddf24f333f72cc6
parentInvalidate get_last_receipt_event_id_for_user cache (diff)
downloadsynapse-feb294d552ac58b867142118c3d19f0b11b2f384.tar.xz
Remove dead code
-rw-r--r--synapse/handlers/sync.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 6a5868f87e..ddeed27965 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -179,18 +179,6 @@ class SyncHandler(BaseHandler):
         else:
             return self.incremental_sync_with_gap(sync_config, since_token)
 
-    def last_read_event_id_for_room_and_user(self, room_id, user_id, ephemeral_by_room):
-        if room_id not in ephemeral_by_room:
-            return None
-        for e in ephemeral_by_room[room_id]:
-            if e['type'] != 'm.receipt':
-                continue
-            for receipt_event_id, val in e['content'].items():
-                if 'm.read' in val:
-                    if user_id in val['m.read']:
-                        return receipt_event_id
-        return None
-
     @defer.inlineCallbacks
     def full_state_sync(self, sync_config, timeline_since_token):
         """Get a sync for a client which is starting without any state.