Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove leftovers and useless call to h() helper

Christophe Bliardbf25818af713
diff --git a/app/components/enumerations/row_component.rb b/app/components/enumerations/row_component.rb
index 5117171a4b0..4b9230ade04 100644
--- a/app/components/enumerations/row_component.rb
+++ b/app/components/enumerations/row_component.rb
@@ -35,7 +35,7 @@ module Enumerations
end
def name
- link_to h(enumeration.name), edit_enumeration_path(enumeration)
+ link_to enumeration.name, edit_enumeration_path(enumeration)
end
def is_default # rubocop:disable Naming/PredicateName
diff --git a/app/components/table_component.rb b/app/components/table_component.rb
index 59eaae7bd5f..97738c8e1f9 100644
--- a/app/components/table_component.rb
+++ b/app/components/table_component.rb
@@ -66,25 +66,7 @@ class TableComponent < ViewComponent::Base
false
end
- # ##
- # # An array listing each column and its respective options.
- # #
- # # @return Array<Array>
- # def headers
- # columns.map { |name| [name.to_s, {}] }
- # end
-
def empty_row_message
I18n.t :no_results_title_text
end
-
- # # required by the sort helper
-
- # delegate :controller_name, to: :controller
-
- # delegate :action_name, to: :controller
-
- # def options
- # super
- # end
end