1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

complex.c: remove deprecated functions

* complex.c (rb_complex_set_real, rb_complex_set_imag): remove
  functions deprecated at 2.2.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-02-21 06:07:21 +00:00
parent 556a1352e4
commit f4c2b33eac
3 changed files with 4 additions and 16 deletions

View file

@ -1446,20 +1446,6 @@ rb_Complex(VALUE x, VALUE y)
return nucomp_s_convert(2, a, rb_cComplex); return nucomp_s_convert(2, a, rb_cComplex);
} }
VALUE
rb_complex_set_real(VALUE cmp, VALUE r)
{
RCOMPLEX_SET_REAL(cmp, r);
return cmp;
}
VALUE
rb_complex_set_imag(VALUE cmp, VALUE i)
{
RCOMPLEX_SET_IMAG(cmp, i);
return cmp;
}
VALUE VALUE
rb_complex_abs(VALUE cmp) rb_complex_abs(VALUE cmp)
{ {

View file

@ -4,6 +4,10 @@
#define DECLARE_DEPRECATED_FEATURE(ver, func) \ #define DECLARE_DEPRECATED_FEATURE(ver, func) \
NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void)))) NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
/* complex.c */
DECLARE_DEPRECATED_FEATURE(2.2, rb_complex_set_real);
DECLARE_DEPRECATED_FEATURE(2.2, rb_complex_set_imag);
/* eval.c */ /* eval.c */
DECLARE_DEPRECATED_FEATURE(2.2, rb_disable_super); DECLARE_DEPRECATED_FEATURE(2.2, rb_disable_super);
DECLARE_DEPRECATED_FEATURE(2.2, rb_enable_super); DECLARE_DEPRECATED_FEATURE(2.2, rb_enable_super);

View file

@ -183,8 +183,6 @@ VALUE rb_complex_polar(VALUE, VALUE);
VALUE rb_Complex(VALUE, VALUE); VALUE rb_Complex(VALUE, VALUE);
#define rb_Complex1(x) rb_Complex((x), INT2FIX(0)) #define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
#define rb_Complex2(x,y) rb_Complex((x), (y)) #define rb_Complex2(x,y) rb_Complex((x), (y))
DEPRECATED(VALUE rb_complex_set_real(VALUE, VALUE));
DEPRECATED(VALUE rb_complex_set_imag(VALUE, VALUE));
/* class.c */ /* class.c */
VALUE rb_class_new(VALUE); VALUE rb_class_new(VALUE);
VALUE rb_mod_init_copy(VALUE, VALUE); VALUE rb_mod_init_copy(VALUE, VALUE);