diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-04 15:46:19 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-12-04 15:46:19 +0000 |
commit | 9186c105a0d49c60582ff93cf108e511334c57fd (patch) | |
tree | 9e2fd800f1dedbf7cb9d033b31f57037c3dc3412 /synapse/storage/data_stores | |
parent | _CURRENT_STATE_CACHE_NAME is public (diff) | |
download | synapse-9186c105a0d49c60582ff93cf108e511334c57fd.tar.xz |
Revert "Move get_user_count_txn out of base store"
This reverts commit 00f0d67566cdfe8eae44aeae1c982c42a255cfcd. Its going to get removed soon, so lets not make merge conflicts.
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r-- | synapse/storage/data_stores/main/__init__.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/synapse/storage/data_stores/main/__init__.py b/synapse/storage/data_stores/main/__init__.py index 76315935dd..474924c68f 100644 --- a/synapse/storage/data_stores/main/__init__.py +++ b/synapse/storage/data_stores/main/__init__.py @@ -516,18 +516,6 @@ class DataStore( retval = {"users": users, "total": count} return retval - def get_user_count_txn(self, txn): - """Get a total number of registered users in the users list. - - Args: - txn : Transaction object - Returns: - int : number of users - """ - sql_count = "SELECT COUNT(*) FROM users WHERE is_guest = 0;" - txn.execute(sql_count) - return txn.fetchone()[0] - def search_users(self, term): """Function to search users list for one or more users with the matched term. |