From 45959ba98eb28e35cef140d8c3ace5877a9a9c2e Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 5 Oct 2023 11:30:00 -0400 Subject: [PATCH 1/2] Remove unused method. --- synapse/storage/databases/main/__init__.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/synapse/storage/databases/main/__init__.py b/synapse/storage/databases/main/__init__.py index 101403578c06..dfcbf0a1752f 100644 --- a/synapse/storage/databases/main/__init__.py +++ b/synapse/storage/databases/main/__init__.py @@ -142,26 +142,6 @@ def __init__( super().__init__(database, db_conn, hs) - 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, From 764ca3146429e70e40a6524a39790cbc3c8d820e Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 5 Oct 2023 11:30:41 -0400 Subject: [PATCH 2/2] Newsfragment --- changelog.d/16435.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/16435.misc diff --git a/changelog.d/16435.misc b/changelog.d/16435.misc new file mode 100644 index 000000000000..e5416071615a --- /dev/null +++ b/changelog.d/16435.misc @@ -0,0 +1 @@ +Remove unused method.