misc: remove old mobile mode (#25942)

This commit is contained in:
Frédéric Péters 2019-07-14 20:37:57 +02:00
parent 8c5973f5b6
commit 1f1e76dce3
1 changed files with 0 additions and 5 deletions

View File

@ -945,11 +945,6 @@ class AlternateRootDirectory(OldRootDirectory):
all_formdefs = FormDef.select(lambda x: not x.is_disabled() or x.disabled_redirection,
order_by = 'name')
if get_response().page_template_key == 'mobile':
# if we are in 'mobile' mode, and some formdefs have a 'mobile'
# keyword, we limit the display to those
if any((x for x in all_formdefs if x.keywords and 'mobile' in x.keywords)):
all_formdefs = [x for x in all_formdefs if x.keywords and 'mobile' in x.keywords]
if position:
t = self.display_list_of_formdefs(