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/registration.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/registration.py')
-rw-r--r-- | synapse/storage/databases/main/registration.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py index 402ae25571..7965a52e30 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py @@ -1345,43 +1345,6 @@ class RegistrationStore(RegistrationBackgroundUpdateStore): "validate_threepid_session_txn", validate_threepid_session_txn ) - def upsert_threepid_validation_session( - self, - medium, - address, - client_secret, - send_attempt, - session_id, - validated_at=None, - ): - """Upsert a threepid validation session - Args: - medium (str): The medium of the 3PID - address (str): The address of the 3PID - client_secret (str): A unique string provided by the client to - help identify this validation attempt - send_attempt (int): The latest send_attempt on this session - session_id (str): The id of this validation session - validated_at (int|None): The unix timestamp in milliseconds of - when the session was marked as valid - """ - insertion_values = { - "medium": medium, - "address": address, - "client_secret": client_secret, - } - - if validated_at: - insertion_values["validated_at"] = validated_at - - return self.db_pool.simple_upsert( - table="threepid_validation_session", - keyvalues={"session_id": session_id}, - values={"last_send_attempt": send_attempt}, - insertion_values=insertion_values, - desc="upsert_threepid_validation_session", - ) - def start_or_continue_validation_session( self, medium, |