diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-29 15:04:47 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-29 15:04:47 +0100 |
commit | 1550ab9e2f8288722ec7c3daa992b33945c2f4f5 (patch) | |
tree | 3000508ffc23af9fdbda60e022d6aaa9501249aa /synapse/storage/__init__.py | |
parent | SYN-48: Fix typo. Get the whois for requested user rather tahan the requester (diff) | |
download | synapse-1550ab9e2f8288722ec7c3daa992b33945c2f4f5.tar.xz |
SYN-48: Delete dead code
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 749347d5a8..1ebbeab2e7 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -316,32 +316,6 @@ class DataStore(RoomMemberStore, RoomStore, ], ) - d = {} - for r in res: - device = d.setdefault(r["device_id"], {}) - session = device.setdefault(r["access_token"], []) - session.append({ - "ip": r["ip"], - "user_agent": r["user_agent"], - "last_seen": r["last_seen"], - }) - - defer.returnValue( - [ - { - "device_id": k, - "sessions": [ - { - "access_token": x, - "connections": y, - } - for x, y in v.items() - ] - } - for k, v in d.items() - ] - ) - def snapshot_room(self, room_id, user_id, state_type=None, state_key=None): """Snapshot the room for an update by a user Args: |