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 dead code

Christophe Bliard571cabccfd52
diff --git a/app/cells/row_cell.rb b/app/cells/row_cell.rb
index 64e2f7464f4..3d03c38573a 100644
--- a/app/cells/row_cell.rb
+++ b/app/cells/row_cell.rb
@@ -41,10 +41,6 @@ class RowCell < RailsCell
entries.to_h
end
- def column_title(_column)
- nil
- end
-
def button_links
[]
end
diff --git a/app/cells/views/projects/row/show.erb b/app/cells/views/projects/row/show.erb
index 446dc564782..042077c9f0a 100644
--- a/app/cells/views/projects/row/show.erb
+++ b/app/cells/views/projects/row/show.erb
@@ -29,9 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<tr <%= "id=\"#{row_css_id}\"" if row_css_id %> class="<%= row_css_class %>">
<% columns.each do |column| %>
- <td class="<%= column_css_class(column) %>"
- <%= title = column_title(column); "title=\"#{title}\"" if title %>
- >
+ <td class="<%= column_css_class(column) %>">
<%= column_value(column) %>
</td>
<% end %>
diff --git a/app/cells/views/row/show.erb b/app/cells/views/row/show.erb
index f520550c9b7..83860e3ff02 100644
--- a/app/cells/views/row/show.erb
+++ b/app/cells/views/row/show.erb
@@ -29,9 +29,7 @@ See COPYRIGHT and LICENSE files for more details.
<tr <%= "id=\"#{row_css_id}\"" if row_css_id %> class="<%= row_css_class %>">
<% columns.each do |column| %>
- <td class="<%= column_css_class(column) %>"
- <%= title = column_title(column); "title=\"#{title}\"" if title %>
- >
+ <td class="<%= column_css_class(column) %>">
<%= column_value(column) %>
</td>
<% end %>
diff --git a/app/helpers/cells_helper.rb b/app/helpers/cells_helper.rb
index 3c09005d773..c6c67e39ff0 100644
--- a/app/helpers/cells_helper.rb
+++ b/app/helpers/cells_helper.rb
@@ -1,17 +1,4 @@
module CellsHelper
- ##
- # Use this to render cells directly as the view for a controller
- # instead of a standard rails view.
- def render_cell(name, model, opts = {})
- opts[:context] = { controller: self } if is_a? ActionController::Base
- render_options = opts.delete(:render_options) || {}
-
- cell = cell(name, model, opts)
- rendered = cell.call
-
- render render_options.merge(text: rendered)
- end
-
def rails_cell(name, model, **args)
args[:context] = {
controller: try(:controller),