diff --git a/app/helpers/officing_helper.rb b/app/helpers/officing_helper.rb index 4e824b3f2..3d53acf6d 100644 --- a/app/helpers/officing_helper.rb +++ b/app/helpers/officing_helper.rb @@ -1,13 +1,5 @@ module OfficingHelper - def officer_assignments_select_options(officer_assignments) - options = [] - officer_assignments.each do |oa| - options << ["#{oa.booth_assignment.booth.name}: #{l(oa.date.to_date, format: :long)}", oa.id] - end - options_for_select(options) - end - def booths_for_officer_select_options(officer_assignments) options = [] officer_assignments.each do |oa| @@ -17,10 +9,6 @@ module OfficingHelper options_for_select(options, params[:oa]) end - def system_recount_to_compare_with_final_recount(final_recount) - final_recount.booth_assignment.voters.select {|v| v.created_at.to_date == final_recount.date}.size - end - def answer_result_value(question_id, answer_index) return nil if params.blank? return nil if params[:questions].blank? diff --git a/app/helpers/polls_helper.rb b/app/helpers/polls_helper.rb index 169599a7c..27d33ea04 100644 --- a/app/helpers/polls_helper.rb +++ b/app/helpers/polls_helper.rb @@ -28,11 +28,6 @@ module PollsHelper options_for_select(options, params[:d]) end - def poll_final_recount_option(poll) - final_date = poll.ends_at.to_date + 1.day - options_for_select([[I18n.t("polls.final_date"), l(final_date)]]) - end - def poll_booths_select_options(poll) options = [] poll.booths.each do |booth| @@ -46,4 +41,4 @@ module PollsHelper booth.name + location end -end \ No newline at end of file +end