Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused and obsolete code #3718

Merged
merged 9 commits into from
Sep 25, 2019
Prev Previous commit
Next Next commit
Remove obsolete poll answers variable
This code is obsolete since commit c6e4b24.
  • Loading branch information
javierm committed Sep 24, 2019
commit 06030933a48e53b2a9a8ad51c7c19581ce115431
1 change: 0 additions & 1 deletion app/controllers/polls_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def show
.where.not(description: "").order(:given_order)

@answers_by_question_id = {}
poll_answers = ::Poll::Answer.by_question(@poll.question_ids).by_author(current_user&.id)

@last_pair_question_answers = {}
@questions.each do |question|
Expand Down