From 180293ac8995922355e84939ee7449dbc0353b1b Mon Sep 17 00:00:00 2001 From: hsbt Date: Thu, 14 May 2015 06:54:22 +0000 Subject: * ext/pathname/lib/pathname.rb: Remove condition of RUBY_VERSION <= 1.9. [Feature #11082] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pathname/lib/pathname.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ext/pathname') diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb index 82541e9b15..f5db526b8c 100644 --- a/ext/pathname/lib/pathname.rb +++ b/ext/pathname/lib/pathname.rb @@ -13,13 +13,8 @@ require 'pathname.so' class Pathname - # :stopdoc: - if RUBY_VERSION < "1.9" - TO_PATH = :to_str - else - # to_path is implemented so Pathname objects are usable with File.open, etc. - TO_PATH = :to_path - end + # to_path is implemented so Pathname objects are usable with File.open, etc. + TO_PATH = :to_path SAME_PATHS = if File::FNM_SYSCASE.nonzero? # Avoid #zero? here because #casecmp can return nil. -- cgit v1.2.3