From f790a04102573901ded2d82de53f899cfaa2310e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 26 Jul 2016 19:02:01 -0700 Subject: [PATCH] Remove unused get_subscriber_ids. --- zerver/lib/actions.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index b7269a6cda..5f50c2e6ea 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1192,17 +1192,6 @@ def get_subscriber_emails(stream, requesting_user=None): subscriptions = subscriptions_query.values('user_profile__email') return [subscription['user_profile__email'] for subscription in subscriptions] -def get_subscriber_ids(stream): - # type: (Stream) -> List[int] - try: - subscriptions = get_subscribers_query(stream, None) - except JsonableError: - return [] - - rows = subscriptions.values('user_profile_id') - ids = [row['user_profile_id'] for row in rows] - return ids - def maybe_get_subscriber_emails(stream): # type: (Stream) -> List[text_type] """ Alternate version of get_subscriber_emails that takes a Stream object only