From 726017f68282fac56593b0e8e6b0e965539173a4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 13 May 2018 17:58:49 -0700 Subject: [PATCH] actions: Remove dead do_change_bot_type function. This is a tiny fraction of a feature we don't support, so we should just kill it. --- zerver/lib/actions.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 0234130895..7af47f32c8 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2956,10 +2956,6 @@ def do_change_is_admin(user_profile: UserProfile, value: bool, is_admin=value)) send_event(event, active_user_ids(user_profile.realm_id)) -def do_change_bot_type(user_profile: UserProfile, value: int) -> None: - user_profile.bot_type = value - user_profile.save(update_fields=["bot_type"]) - def do_change_stream_invite_only(stream: Stream, invite_only: bool, history_public_to_subscribers: Optional[bool]=None) -> None: history_public_to_subscribers = get_default_value_for_history_public_to_subscribers(