Skip to content

Commit a42ea4e

Browse files
committed
Remove unused code dealing with unaccepted_responses
These unaccepted_responses were only used by Smartdown flows, and we removed the final parts of Smartdown in d2138cd. There's definitely more code that can be removed now that Smartdown has gone but I figured I'd do this as I recently came across it.
1 parent 2e16561 commit a42ea4e

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)