SYN-48: Delete dead code

pull/5/head
Erik Johnston 2014-09-29 15:04:47 +01:00
parent 1132663cc7
commit 1550ab9e2f
1 changed files with 0 additions and 26 deletions

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):
"""Snapshot the room for an update by a user
Args: