user_groups: Remove unused check_remove_user_from_user_group function.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-13 18:30:37 -07:00
committed by Tim Abbott
parent 4e366bfff5
commit 271333301d
2 changed files with 0 additions and 21 deletions

View File

@@ -60,14 +60,6 @@ def remove_user_from_user_group(user_profile: UserProfile, user_group: UserGroup
return num_deleted
def check_remove_user_from_user_group(user_profile: UserProfile, user_group: UserGroup) -> bool:
try:
num_deleted = remove_user_from_user_group(user_profile, user_group)
return bool(num_deleted)
except Exception:
return False
def create_user_group(
name: str, members: List[UserProfile], realm: Realm, description: str = ""
) -> UserGroup: