Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
closes FOO-1373
flag=none

TEST PLAN:
  1) index quizzes on a public course with no user
     and the course has engine_selected/user_id
     in settings
  2) no 500 happens on quiz_engine_selection helper

Change-Id: Idbe57981a285602b66f952c6611c12ea16119b18
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255658
Reviewed-by: Cody Cutrer <[email protected]>
Tested-by: Service Cloud Jenkins <[email protected]>
QA-Review: Cody Cutrer <[email protected]>
Product-Review: Cody Cutrer <[email protected]>
  • Loading branch information
evizitei committed Jan 11, 2021
1 parent 1fc78b3 commit 935386b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/quizzes/quizzes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,6 @@ def scoped_quizzes
def quiz_engine_selection
selection = nil
if @context.is_a?(Course) && @context.settings.dig(:engine_selected, :user_id)
user_id = @current_user.id
selection_obj = @context.settings.dig(:engine_selected, :user_id)
if selection_obj[:expiration] > Time.zone.today
selection = selection_obj[:newquizzes_engine_selected]
Expand Down

0 comments on commit 935386b

Please sign in to comment.