From d2eab487cfbcc3b8130a23466e2439320db95cd4 Mon Sep 17 00:00:00 2001 From: "William T. Nelson" <35801+wtn@users.noreply.github.com> Date: Fri, 23 Oct 2026 12:42:02 -0500 Subject: [PATCH] Remove unused DIRECTORY_TERM constant --- lib/fileutils.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 0a48c03..a9c4a76 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -2467,12 +2467,6 @@ def join(dir, base) end end - if File::ALT_SEPARATOR - DIRECTORY_TERM = "(?=[/#{Regexp.quote(File::ALT_SEPARATOR)}]|\\z)" - else - DIRECTORY_TERM = "(?=/|\\z)" - end - def descendant_directory?(descendant, ascendant) if File::FNM_SYSCASE.nonzero? File.expand_path(File.dirname(descendant)).casecmp(File.expand_path(ascendant)) == 0