diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-08 15:23:46 -0700 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-06 01:15:46 +0900 |
commit | d36b197d7c1ce5684fb215697dc2d404cbd730d0 (patch) | |
tree | 2a93f1ceadf02eb62ff1bf346e0b1a6bed820e82 /ext/bigdecimal | |
parent | f00efef30ad6eca30e5674493dacbd25b425a4eb (diff) |
[ruby/bigdecimal] Remove definition of BigDecimal#initialize_copy
This leaves the default definition, which will raise FrozenError.
https://github.com/ruby/bigdecimal/commit/05e843d838
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3295
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 3a46bd1c01..5d0fc85baa 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -3464,9 +3464,6 @@ Init_bigdecimal(void) /* instance methods */ - rb_undef_method(rb_cBigDecimal, "initialize_copy"); - rb_undef_method(rb_cBigDecimal, "initialize_clone"); - rb_undef_method(rb_cBigDecimal, "initialize_dup"); rb_define_method(rb_cBigDecimal, "precs", BigDecimal_prec, 0); rb_define_method(rb_cBigDecimal, "add", BigDecimal_add2, 2); |