diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-14 09:25:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 09:25:40 -0400 |
commit | 6b7ce1d332766bc2da9e99b22a452e0813a2aae3 (patch) | |
tree | d50f68fdcbe14e595b119ebb27cf0673b240b560 /synapse/storage/databases/main/presence.py | |
parent | Convert misc database code to async (#8087) (diff) | |
download | synapse-6b7ce1d332766bc2da9e99b22a452e0813a2aae3.tar.xz |
Remove some unused database functions. (#8085)
Diffstat (limited to 'synapse/storage/databases/main/presence.py')
-rw-r--r-- | synapse/storage/databases/main/presence.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/synapse/storage/databases/main/presence.py b/synapse/storage/databases/main/presence.py index fd213d2dfd..9f691e5792 100644 --- a/synapse/storage/databases/main/presence.py +++ b/synapse/storage/databases/main/presence.py @@ -157,24 +157,3 @@ class PresenceStore(SQLBaseStore): def get_current_presence_token(self): return self._presence_id_gen.get_current_token() - - def allow_presence_visible(self, observed_localpart, observer_userid): - return self.db_pool.simple_insert( - table="presence_allow_inbound", - values={ - "observed_user_id": observed_localpart, - "observer_user_id": observer_userid, - }, - desc="allow_presence_visible", - or_ignore=True, - ) - - def disallow_presence_visible(self, observed_localpart, observer_userid): - return self.db_pool.simple_delete_one( - table="presence_allow_inbound", - keyvalues={ - "observed_user_id": observed_localpart, - "observer_user_id": observer_userid, - }, - desc="disallow_presence_visible", - ) |