aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-10 14:31:29 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-10 14:31:29 -0700
commit628a23cdd230f7f830ecbba137ab2430f69e8db5 (patch)
tree2f9ecb8c97cfade9fdff8807fa9574418b5ed921 /actionpack/lib/action_dispatch/routing/mapper.rb
parent6ac882bb58b429d20b76c96975df7dabaf618988 (diff)
downloadrails-628a23cdd230f7f830ecbba137ab2430f69e8db5.tar.gz
rails-628a23cdd230f7f830ecbba137ab2430f69e8db5.tar.bz2
rails-628a23cdd230f7f830ecbba137ab2430f69e8db5.zip
remove dead code
This method isn't used internally, isn't tested, isn't documented. We should delete it.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 09abeb43a1..da0970d110 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1671,18 +1671,6 @@ module ActionDispatch
@scope.nested?
end
- def with_exclusive_scope
- begin
- @scope = @scope.new(:as => nil, :path => nil)
-
- with_scope_level(:exclusive) do
- yield
- end
- ensure
- @scope = @scope.parent
- end
- end
-
def with_scope_level(kind)
@scope = @scope.new_level(kind)
yield