diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-25 06:37:18 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-25 06:37:18 +0000 |
commit | 21b716f9a5930e60569a900c45b6aa88f5081ca1 (patch) | |
tree | 4039d9fd8050b747a52dc83ea15e285b502849bd /lib/date.rb | |
parent | 1e6a884a4fb20110b139cbd13db18e9c0701bdd5 (diff) | |
download | ruby-21b716f9a5930e60569a900c45b6aa88f5081ca1.tar.gz |
* lib/date.rb, lib/date/delta*: reverted experimental r24567 and
r25393.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/date.rb b/lib/date.rb index 3bb0875023..a400c2afdc 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1371,12 +1371,6 @@ class Date case other when Numeric; return @ajd <=> other when Date; return @ajd <=> other.ajd - else - begin - l, r = other.coerce(self) - return l <=> r - rescue NoMethodError - end end nil end @@ -1391,9 +1385,6 @@ class Date case other when Numeric; return jd == other when Date; return jd == other.jd - else - l, r = other.coerce(self) - return l === r end false end |