diff options
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 |