Remove caching_allowed? from ActionController::Caching

Where is this used? No other code references to this method and it
isn't being tested anywhere. No tests fail when commented out.
This commit is contained in:
Michiel Sikkes 2013-01-28 21:17:48 +01:00
parent 8fff05ad32
commit c4bc360e4e

@ -82,10 +82,6 @@ def view_cache_dependency(&dependency)
end
end
def caching_allowed?
request.get? && response.status == 200
end
def view_cache_dependencies
self.class._view_cache_dependencies.map { |dep| instance_exec(&dep) }.compact
end