diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:14:31 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:14:31 +0000 |
commit | 08260c2373db50e2bf0e919282f8921542acb854 (patch) | |
tree | e264b6cc9264e5972823f21469f6c4ef6de6553e /activesupport | |
parent | 5b2ea20f562aa09ade8965f72c4075dd79609956 (diff) | |
download | rails-08260c2373db50e2bf0e919282f8921542acb854.tar.gz rails-08260c2373db50e2bf0e919282f8921542acb854.tar.bz2 rails-08260c2373db50e2bf0e919282f8921542acb854.zip |
Remove deprecated key_file_path
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 8 | ||||
-rw-r--r-- | activesupport/test/caching_test.rb | 6 |
2 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 1971ff182e..34456a594f 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -138,14 +138,6 @@ module ActiveSupport File.join(cache_path, DIR_FORMATTER % dir_1, DIR_FORMATTER % dir_2, *fname_paths) end - def key_file_path(key) - ActiveSupport::Deprecation.warn(<<-MESSAGE.strip_heredoc) - `key_file_path` is deprecated and will be removed from Rails 5.1. - Please use `normalize_key` which will return a fully resolved key or nothing. - MESSAGE - key - end - # Translate a file path into a key. def file_path_key(path) fname = path[cache_path.to_s.size..-1].split(File::SEPARATOR, 4).last diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index f489ded1be..02a9e5eff5 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -918,12 +918,6 @@ class FileStoreTest < ActiveSupport::TestCase @cache.write(1, nil) assert_equal false, @cache.write(1, "aaaaaaaaaa", unless_exist: true) end - - def test_can_call_deprecated_key_file_path - assert_deprecated "`key_file_path` is deprecated" do - assert_equal 111, @cache.send(:key_file_path, 111) - end - end end class MemoryStoreTest < ActiveSupport::TestCase |