push_notifications: Remove unused num_push_devices_for_user function.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-13 18:25:04 -07:00
committed by Tim Abbott
parent b2239e45ac
commit fdbde9f9c2
2 changed files with 0 additions and 19 deletions

View File

@@ -417,13 +417,6 @@ def send_notifications_to_bouncer(
#
def num_push_devices_for_user(user_profile: UserProfile, kind: Optional[int] = None) -> int:
if kind is None:
return PushDeviceToken.objects.filter(user=user_profile).count()
else:
return PushDeviceToken.objects.filter(user=user_profile, kind=kind).count()
def add_push_device_token(
user_profile: UserProfile, token_str: str, kind: int, ios_app_id: Optional[str] = None
) -> PushDeviceToken: