summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-05-07 00:17:46 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-05-13 17:37:48 +0900
commita5996718f3517e29883cdb853608d452364de49a (patch)
tree0f2c373b917faef0243e8eaccb97d4948bdf7770
parentce5a0999012980f8b83908e407590c4e0ae494fa (diff)
pathname: SEPARATOR_PAT is no longer used
-rw-r--r--pathname_builtin.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/pathname_builtin.rb b/pathname_builtin.rb
index f353e027b6..e8186c9e1d 100644
--- a/pathname_builtin.rb
+++ b/pathname_builtin.rb
@@ -298,18 +298,6 @@ class Pathname
"#<#{self.class}:#{@path}>"
end
- if File::ALT_SEPARATOR
- # Separator list string.
- separator_list = Regexp.quote "#{File::ALT_SEPARATOR}#{File::SEPARATOR}"
- # Regexp that matches a separator.
- SEPARATOR_PAT = /[#{separator_list}]/
- else
- separator_list = Regexp.quote File::SEPARATOR
- SEPARATOR_PAT = /#{separator_list}/
- end
- SEPARATOR_PAT.freeze
- private_constant :SEPARATOR_PAT
-
# Creates a full path, including any intermediate directories that don't yet
# exist.
#