From 244a88a1cdef7fb92f17886a5bbbc304047e42fa Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 5 Sep 2025 14:29:01 +1000 Subject: [PATCH] Removed unused user from report classes We needed them for a feature toggle that doesn't exist anymore. --- lib/reporting/report_headers_builder.rb | 3 +-- lib/reporting/report_row_builder.rb | 3 +-- lib/reporting/report_rows_builder.rb | 4 ++-- lib/reporting/report_template.rb | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/reporting/report_headers_builder.rb b/lib/reporting/report_headers_builder.rb index 3032acc1bd..a74d0826a0 100644 --- a/lib/reporting/report_headers_builder.rb +++ b/lib/reporting/report_headers_builder.rb @@ -4,9 +4,8 @@ module Reporting class ReportHeadersBuilder attr_reader :report - def initialize(report, current_user) + def initialize(report) @report = report - @current_user = current_user end def table_headers diff --git a/lib/reporting/report_row_builder.rb b/lib/reporting/report_row_builder.rb index d748c754d4..94bf0bdc62 100644 --- a/lib/reporting/report_row_builder.rb +++ b/lib/reporting/report_row_builder.rb @@ -7,9 +7,8 @@ module Reporting attr_reader :report - def initialize(report, current_user) + def initialize(report) @report = report - @current_user = current_user end # Compute the query result item into a result row diff --git a/lib/reporting/report_rows_builder.rb b/lib/reporting/report_rows_builder.rb index 4da6c969c3..2f02ea7750 100644 --- a/lib/reporting/report_rows_builder.rb +++ b/lib/reporting/report_rows_builder.rb @@ -4,9 +4,9 @@ module Reporting class ReportRowsBuilder attr_reader :report - def initialize(report, current_user) + def initialize(report) @report = report - @builder = ReportRowBuilder.new(report, current_user) + @builder = ReportRowBuilder.new(report) end # Structured data by groups. This tree is used to render diff --git a/lib/reporting/report_template.rb b/lib/reporting/report_template.rb index 3567e779e5..0c511b47fc 100644 --- a/lib/reporting/report_template.rb +++ b/lib/reporting/report_template.rb @@ -114,11 +114,11 @@ module Reporting end def rows_builder - @rows_builder ||= ReportRowsBuilder.new(self, @user) + @rows_builder ||= ReportRowsBuilder.new(self) end def headers_builder - @headers_builder ||= ReportHeadersBuilder.new(self, @user) + @headers_builder ||= ReportHeadersBuilder.new(self) end def ruler