mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
push_notifications: Remove unused num_push_devices_for_user function.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b2239e45ac
commit
fdbde9f9c2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user