mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
user_groups: Remove unused check_remove_user_from_user_group function.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4e366bfff5
commit
271333301d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user