aboutsummaryrefslogtreecommitdiffstats
path: root/ext/pathname/lib/pathname.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-29 13:29:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-29 13:29:20 +0000
commit3608baa9909b4b20a8366fcc48393b7763b4be41 (patch)
tree278ce1063a8ef53b7e774569858a5c3b381d84fd /ext/pathname/lib/pathname.rb
parent8d228b25795dc2f598a9511ec18769285fd11109 (diff)
downloadruby-3608baa9909b4b20a8366fcc48393b7763b4be41.tar.gz
* ext/pathname/pathname.c (path_cmp): Pathname#<=> translated
from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname/lib/pathname.rb')
-rw-r--r--ext/pathname/lib/pathname.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 8abbd667e5..0c99b95892 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -208,12 +208,6 @@ class Pathname
# :startdoc:
- # Provides for comparing pathnames, case-sensitively.
- def <=>(other)
- return nil unless Pathname === other
- @path.tr('/', "\0") <=> other.to_s.tr('/', "\0")
- end
-
def hash # :nodoc:
@path.hash
end