Remove dead code

This commit is contained in:
Erik Johnston 2016-02-09 14:32:17 +00:00
parent 70a8608749
commit feb294d552

View File

@ -179,18 +179,6 @@ class SyncHandler(BaseHandler):
else: else:
return self.incremental_sync_with_gap(sync_config, since_token) 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 @defer.inlineCallbacks
def full_state_sync(self, sync_config, timeline_since_token): def full_state_sync(self, sync_config, timeline_since_token):
"""Get a sync for a client which is starting without any state. """Get a sync for a client which is starting without any state.