diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-25 21:14:25 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-25 21:14:25 +0000 |
commit | 618b9c5fec823c5d4acbb8cdc90f76782240dcd2 (patch) | |
tree | 63d37f04f4859250922deb67d783165e0b70a2f3 /ext/bigdecimal | |
parent | 219fafd4d2654ba54d4c0164871ee61262b4b210 (diff) | |
download | ruby-618b9c5fec823c5d4acbb8cdc90f76782240dcd2.tar.gz |
* 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
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 12 |
1 files changed, 0 insertions, 12 deletions
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); |