From a5996718f3517e29883cdb853608d452364de49a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 7 May 2026 00:17:46 +0900 Subject: pathname: SEPARATOR_PAT is no longer used --- pathname_builtin.rb | 12 ------------ 1 file changed, 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. # -- cgit v1.2.3