From 035e442b630ecc2c94d18957f9c54438973bfd68 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 29 Jan 2017 19:28:39 -0800 Subject: [PATCH] actions: Remove unused set_stream_color method. --- zerver/lib/actions.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 6dcd535043..f10d294b4c 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1518,15 +1518,6 @@ def maybe_get_subscriber_emails(stream, user_profile): subscribers = [] return subscribers -def set_stream_color(user_profile, stream_name, color=None): - # type: (UserProfile, Text, Optional[Text]) -> Text - subscription = get_subscription(stream_name, user_profile) - if not color: - color = pick_color(user_profile) - subscription.color = color - subscription.save(update_fields=["color"]) - return color - def notify_subscriptions_added(user_profile, sub_pairs, stream_emails, no_log=False): # type: (UserProfile, Iterable[Tuple[Subscription, Stream]], Callable[[Stream], List[Text]], bool) -> None if not no_log: