diff options
author | Andrew Morgan <andrewm@element.io> | 2022-07-26 11:44:45 +0100 |
---|---|---|
committer | Andrew Morgan <andrewm@element.io> | 2022-08-03 14:39:37 +0100 |
commit | fcf058f5646ea09bff8e45e36e151efec8266579 (patch) | |
tree | 4986c7bb13ea0a0cf69d1db38c673bf1fa4f912c /synapse | |
parent | Return 404 or member list when getting joined_members after leaving (#13374) (diff) | |
download | synapse-fcf058f5646ea09bff8e45e36e151efec8266579.tar.xz |
Remove unused 'DataStore.get_users' method
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/databases/main/__init__.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/synapse/storage/databases/main/__init__.py b/synapse/storage/databases/main/__init__.py index 4dccbb732a..5b2df238a2 100644 --- a/synapse/storage/databases/main/__init__.py +++ b/synapse/storage/databases/main/__init__.py @@ -173,26 +173,6 @@ class DataStore( # TODO: shouldn't this be moved to `DeviceWorkerStore`? return self._device_list_id_gen.get_current_token() - async def get_users(self) -> List[JsonDict]: - """Function to retrieve a list of users in users table. - - Returns: - A list of dictionaries representing users. - """ - return await self.db_pool.simple_select_list( - table="users", - keyvalues={}, - retcols=[ - "name", - "password_hash", - "is_guest", - "admin", - "user_type", - "deactivated", - ], - desc="get_users", - ) - async def get_users_paginate( self, start: int, |