user_groups: Remove unused user_groups_in_realm function.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-13 18:27:50 -07:00
committed by Tim Abbott
parent fdbde9f9c2
commit 57acac12fa
2 changed files with 0 additions and 15 deletions

View File

@@ -22,11 +22,6 @@ def access_user_group_by_id(user_group_id: int, user_profile: UserProfile) -> Us
return user_group
def user_groups_in_realm(realm: Realm) -> List[UserGroup]:
user_groups = UserGroup.objects.filter(realm=realm)
return list(user_groups)
def user_groups_in_realm_serialized(realm: Realm) -> List[Dict[str, Any]]:
"""This function is used in do_events_register code path so this code
should be performant. We need to do 2 database queries because