SYN-48: Delete dead code

This commit is contained in:
Erik Johnston 2014-09-29 15:04:47 +01:00
parent 1132663cc7
commit 1550ab9e2f

View File

@ -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): def snapshot_room(self, room_id, user_id, state_type=None, state_key=None):
"""Snapshot the room for an update by a user """Snapshot the room for an update by a user
Args: Args: