mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove unused code
This commit is contained in:
parent
877c133855
commit
bbbe1a58e6
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue