From 628a23cdd230f7f830ecbba137ab2430f69e8db5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 10 Aug 2015 14:31:29 -0700 Subject: remove dead code This method isn't used internally, isn't tested, isn't documented. We should delete it. --- actionpack/lib/action_dispatch/routing/mapper.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'actionpack') 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 -- cgit v1.2.3