From f6488077304daed62a4bb74d84b8609238fd68ed Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 19 Aug 2020 09:46:14 -0400 Subject: [PATCH] Remove unused Device model item --- TODO.md | 1 - src/backend/models/items.py | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/TODO.md b/TODO.md index 3ef13f2c..9cbe2841 100644 --- a/TODO.md +++ b/TODO.md @@ -2,7 +2,6 @@ - server list sorting method / explain what the % number is (stability) - spam alt+shift+a when starting app on server browser → segfault -- remove items.Device - register tab for sso servers? - cursor shape in HBox/HTabbedBox pages over fields - login with account already added → infinite spinner in room list diff --git a/src/backend/models/items.py b/src/backend/models/items.py index 9ec2f0b8..b46c980f 100644 --- a/src/backend/models/items.py +++ b/src/backend/models/items.py @@ -351,16 +351,3 @@ class Event(ModelItem): return json.dumps(source_dict) return super().serialize_field(field) - - -@dataclass -class Device(ModelItem): - """A matrix user's device. This class is currently unused.""" - - id: str = field() - ed25519_key: str = field() - trusted: bool = False - blacklisted: bool = False - display_name: str = "" - last_seen_ip: str = "" - last_seen_date: str = ""