* ext/bigdecimal/bigdecimal.c: remove useless method BigDecimal#!=. [ruby-dev:30050]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2006-12-25 21:14:25 +00:00
parent 219fafd4d2
commit 618b9c5fec
2 changed files with 5 additions and 12 deletions

View File

@ -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.

View File

@ -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);