Remove unused 'DataStore.get_users' method

This commit is contained in:
Andrew Morgan 2022-07-26 11:44:45 +01:00
parent 78a3111c41
commit fcf058f564

View file

@ -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,