mirror of
https://github.com/element-hq/synapse
synced 2024-06-30 18:23:28 +00:00
Remove unused 'DataStore.get_users' method
This commit is contained in:
parent
78a3111c41
commit
fcf058f564
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue