From 7a564c095f2f032b85a1ef41c610ed4fc09b498c Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Tue, 16 Jan 2018 10:02:36 +0100 Subject: [PATCH] Remove dead #languages_list helper It was introduced in eb789692aa9948135ce9f5c28a9b383b9d3153b4 and used in the _navbar but it became dead in 0fecd89edefb27b6a3fde9b795f0efbbcc0f4c4c when the navbar was refactored. Now we use `I18n.available_locales`. --- app/helpers/application_helper.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cabe0bf99..03271794f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -34,15 +34,6 @@ def tnc_path document_path(Document.terms_and_conditions || 0, modal: true) end - def languages_list - I18n.available_locales.each do |locale| - concat content_tag(:li, - link_to(locale_menu_item(locale), - switch_lang_path(locale: locale)), - class: ("disabled" if I18n.locale == locale)) - end - end - def show_error_messages!(resource) return "" if resource.errors.empty?