decorator: Remove ancient client_name hack for iOS.

The old iOS app has been gone from the app store for 8 months, never
had a huge userbase, and its latest version didn't need this hack.  So
this code is unlikely to do anything in the future; remove it to
declutter our authentication decorators codebase.
This commit is contained in:
Tim Abbott
2017-08-14 16:10:27 -07:00
parent b46af40bd3
commit 077c05fc78

View File

@@ -169,11 +169,6 @@ def process_client(request, user_profile, is_json_view=False, client_name=None,
if client_name is None:
client_name = get_client_name(request, is_json_view)
# Transitional hack for early 2014. Eventually the ios clients
# will all report ZulipiOS, and we can remove the next couple lines.
if client_name == 'ios':
client_name = 'ZulipiOS'
request.client = get_client(client_name)
if not remote_server_request:
update_user_activity(request, user_profile)