From 40e8aadcf76d1ef0f85bde676d530ea0ea7dd677 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Wed, 10 Oct 2018 12:11:01 +0900 Subject: [PATCH] Remove an unused method Signed-off-by: Kenji Okimoto --- app/helpers/application_helper.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d81d332..03b44d6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -27,16 +27,6 @@ module ApplicationHelper }[locale] || locale end - def language_menu - html = "" - I18n.available_locales.each do |locale| - text = (locale == current_locale ? icon("fa-check") : "") - text << language_name(locale) - html << %Q|
  • #{link_to text , "?lang=#{locale}"}
  • | - end - raw html - end - def link_to_other(text, path, **options) if current_page?(path) # NOTE: sb-admin set style for element name instead of class name, such as ".nav a". So use "a" element even if it isn't a link.