summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-29 15:04:47 +0100
committerErik Johnston <erik@matrix.org>2014-09-29 15:04:47 +0100
commit1550ab9e2f8288722ec7c3daa992b33945c2f4f5 (patch)
tree3000508ffc23af9fdbda60e022d6aaa9501249aa
parentSYN-48: Fix typo. Get the whois for requested user rather tahan the requester (diff)
downloadsynapse-1550ab9e2f8288722ec7c3daa992b33945c2f4f5.tar.xz
SYN-48: Delete dead code
-rw-r--r--synapse/storage/__init__.py26
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: