aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-06-08 17:33:45 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-06-08 17:33:45 -0700
commitbbbe1a58e60da079d5d353777561d1c998549571 (patch)
treefcdd4959765618b113962763664fd814b2513366
parent877c133855c8f26f8f250103aba8c458a787d39b (diff)
downloadrails-bbbe1a58e60da079d5d353777561d1c998549571.tar.gz
rails-bbbe1a58e60da079d5d353777561d1c998549571.tar.bz2
rails-bbbe1a58e60da079d5d353777561d1c998549571.zip
remove unused code
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 49473ecd6f..cf35e85b40 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -513,7 +513,7 @@ module ActionDispatch
ast = conditions.delete :parsed_path_info
required_defaults = conditions.delete :required_defaults
path = build_path(path, ast, requirements, anchor)
- conditions = build_conditions(conditions, path.names.map(&:to_sym))
+ conditions = build_conditions(conditions)
route = @set.add_route(app, path, conditions, required_defaults, defaults, name)
named_routes[name] = route if name
@@ -551,7 +551,7 @@ module ActionDispatch
end
private :build_path
- def build_conditions(current_conditions, path_values)
+ def build_conditions(current_conditions)
conditions = current_conditions.dup
# Rack-Mount requires that :request_method be a regular expression.