diff --git a/app/models/poll/question.rb b/app/models/poll/question.rb index f1015bba7..c11d8c654 100644 --- a/app/models/poll/question.rb +++ b/app/models/poll/question.rb @@ -43,12 +43,6 @@ class Poll::Question < ApplicationRecord delegate :answerable_by?, to: :poll - def self.answerable_by(user) - return none if user.nil? || user.unverified? - - where(poll_id: Poll.answerable_by(user).pluck(:id)) - end - def options_total_votes question_options.reduce(0) { |total, question_option| total + question_option.total_votes } end