From 38bfb33c02d7e2611b7398d43e113dd1ef64fecd Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 10 Jul 2024 13:16:15 +0300 Subject: [PATCH] Remove single-use OpenID logo helper --- app/helpers/user_helper.rb | 4 ---- app/views/application/_auth_providers.html.erb | 2 +- test/helpers/user_helper_test.rb | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 26ba2c528..734a266db 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -52,10 +52,6 @@ module UserHelper # External authentication support - def openid_logo - image_tag "openid.svg", :size => "36", :alt => t("application.auth_providers.openid_logo_alt"), :class => "align-text-bottom" - end - def auth_button(name, provider, options = {}) link_to( image_tag("#{name}.svg", diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index 14e296a07..4b487cc5d 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -47,7 +47,7 @@ <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
<%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %> diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index eaf406a06..53b9a823b 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -109,11 +109,6 @@ class UserHelperTest < ActionView::TestCase assert_match %r{^$}, thumbnail end - def test_openid_logo - logo = openid_logo - assert_match %r{^$}, logo - end - def test_auth_button button = auth_button("google", "google") img_tag = "\"Google" -- 2.39.5