diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 12 |
2 files changed, 5 insertions, 12 deletions
@@ -1,3 +1,8 @@ +Tue Dec 26 06:13:08 2006 Minero Aoki <aamine@loveruby.net> + + * ext/bigdecimal/bigdecimal.c: remove useless method + BigDecimal#!=. [ruby-dev:30050] + Thu Dec 21 15:37:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_str_slice_bang): rdoc description bug fixed. diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index f0e05a9799..c4be4e80ed 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -781,17 +781,6 @@ BigDecimal_eq(VALUE self, VALUE r) return BigDecimalCmp(self, r, '='); } -/* Returns true if the values are not equal in value. Values may be coerced - * to perform the comparison: - * - * BigDecimal.new('1.0') != 1.0 -> false - */ -static VALUE -BigDecimal_ne(VALUE self, VALUE r) -{ - return BigDecimalCmp(self, r, '!'); -} - /* call-seq: * a < b * @@ -1921,7 +1910,6 @@ Init_bigdecimal(void) rb_define_method(rb_cBigDecimal, "==", BigDecimal_eq, 1); rb_define_method(rb_cBigDecimal, "===", BigDecimal_eq, 1); rb_define_method(rb_cBigDecimal, "eql?", BigDecimal_eq, 1); - rb_define_method(rb_cBigDecimal, "!=", BigDecimal_ne, 1); rb_define_method(rb_cBigDecimal, "<", BigDecimal_lt, 1); rb_define_method(rb_cBigDecimal, "<=", BigDecimal_le, 1); rb_define_method(rb_cBigDecimal, ">", BigDecimal_gt, 1); |