Skip to content

Commit f653ee9

Browse files
committed
Merge pull request #2069 from alphagov/remove-unused-code-for-unaccepted-responses
Remove unused code dealing with unaccepted_responses
2 parents 0f10f1b + f9ead59 commit f653ee9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/controllers/smart_answers_controller.rb

-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ def redirect_response_to_canonical_url
8686
responses: @presenter.current_state.responses,
8787
protocol: (request.ssl? || Rails.env.production?) ? 'https' : 'http',
8888
}
89-
if @presenter.current_state.unaccepted_responses
90-
@presenter.current_state.unaccepted_responses.each_with_index do |unaccepted_response, index|
91-
redirect_params["previous_response_#{index+1}".to_sym] = unaccepted_response.to_s
92-
end
93-
end
9489
redirect_to redirect_params
9590
end
9691
end

0 commit comments

Comments
 (0)