addressee: Remove obsolete parsing functions.

These became unused in c971576b00.
This commit is contained in:
Tim Abbott 2020-05-12 17:33:07 -07:00
parent 496c08e26c
commit f642a0fc89
1 changed files with 0 additions and 19 deletions

View File

@ -10,25 +10,6 @@ from zerver.models import (
Stream,
)
def raw_pm_with_emails(email_str: str, my_email: str) -> List[str]:
frags = email_str.split(',')
emails = [s.strip().lower() for s in frags]
emails = [email for email in emails if email]
if len(emails) > 1:
emails = [email for email in emails if email != my_email.lower()]
return emails
def raw_pm_with_emails_by_ids(user_ids: Iterable[int], my_email: str,
realm: Realm) -> List[str]:
user_profiles = get_user_profiles_by_ids(user_ids, realm)
emails = [user_profile.email for user_profile in user_profiles]
if len(emails) > 1:
emails = [email for email in emails if email != my_email.lower()]
return emails
def get_user_profiles(emails: Iterable[str], realm: Realm) -> List[UserProfile]:
user_profiles: List[UserProfile] = []
for email in emails: