models: Delete unused function get_realm_outgoing_webhook_services_name.

This was implemented as part of some preparatory work for outgoing
webhooks, but isn't actually used.
This commit is contained in:
Tim Abbott 2018-03-12 11:38:31 -07:00
parent 5f3fa2c6b6
commit d6213c3f82
1 changed files with 0 additions and 5 deletions

View File

@ -1959,11 +1959,6 @@ class Service(models.Model):
return self._interfaces[self.interface]
def get_realm_outgoing_webhook_services_name(realm: Realm) -> List[Any]:
return list(Service.objects.filter(
user_profile__realm=realm, user_profile__is_bot=True,
user_profile__bot_type=UserProfile.OUTGOING_WEBHOOK_BOT).values('name'))
def get_bot_services(user_profile_id: str) -> List[Service]:
return list(Service.objects.filter(user_profile__id=user_profile_id))