diff options
author | John Hawthorn <john@hawthorn.email> | 2019-05-22 16:59:06 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-05-23 11:21:17 -0700 |
commit | f3bb3f1c4e2a879b56c7cd22dcd4ec41da17760b (patch) | |
tree | 9274b451e7785fdf676457d5884f1e2674a01bdf /activesupport | |
parent | a85c372798723b900762c27e62c35689905327aa (diff) | |
download | rails-f3bb3f1c4e2a879b56c7cd22dcd4ec41da17760b.tar.gz rails-f3bb3f1c4e2a879b56c7cd22dcd4ec41da17760b.tar.bz2 rails-f3bb3f1c4e2a879b56c7cd22dcd4ec41da17760b.zip |
Delete evented_file_update_checker existing_parent
This is no longer used as of caa3cc8868206f8109e0d633efb09d31e94ef635
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/evented_file_update_checker.rb | 7 | ||||
-rw-r--r-- | activesupport/test/evented_file_update_checker_test.rb | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/activesupport/lib/active_support/evented_file_update_checker.rb b/activesupport/lib/active_support/evented_file_update_checker.rb index 3893b0de0e..3f6fd58f5e 100644 --- a/activesupport/lib/active_support/evented_file_update_checker.rb +++ b/activesupport/lib/active_support/evented_file_update_checker.rb @@ -187,13 +187,6 @@ module ActiveSupport lcsp end - # Returns the deepest existing ascendant, which could be the argument itself. - def existing_parent(dir) - dir.ascend do |ascendant| - break ascendant if ascendant.directory? - end - end - # Filters out directories which are descendants of others in the collection (stable). def filter_out_descendants(dirs) return dirs if dirs.length < 2 diff --git a/activesupport/test/evented_file_update_checker_test.rb b/activesupport/test/evented_file_update_checker_test.rb index b2d5eb94c2..a6bd2ade31 100644 --- a/activesupport/test/evented_file_update_checker_test.rb +++ b/activesupport/test/evented_file_update_checker_test.rb @@ -156,14 +156,6 @@ class EventedFileUpdateCheckerPathHelperTest < ActiveSupport::TestCase assert_nil @ph.longest_common_subpath([]) end - test "#existing_parent returns the most specific existing ascendant" do - wd = Pathname.getwd - - assert_equal wd, @ph.existing_parent(wd) - assert_equal wd, @ph.existing_parent(wd.join("non-existing/directory")) - assert_equal pn("/"), @ph.existing_parent(pn("/non-existing/directory")) - end - test "#filter_out_descendants returns the same collection if there are no descendants (empty)" do assert_equal [], @ph.filter_out_descendants([]) end |