aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-21 06:07:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-21 06:07:21 +0000
commit61c4a794fe7de6cea4ecedd7d58e866303ae48c8 (patch)
tree2f0c8894426b63e1b1f53006871eebfb3bfc7db7 /include
parent8acbd4de1824a68be5bffb97a6d9857fc85cb9e4 (diff)
downloadruby-61c4a794fe7de6cea4ecedd7d58e866303ae48c8.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/ruby/backward.h4
-rw-r--r--include/ruby/intern.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/ruby/backward.h b/include/ruby/backward.h
index 2a92df38d2..0ae9911da8 100644
--- a/include/ruby/backward.h
+++ b/include/ruby/backward.h
@@ -4,6 +4,10 @@
#define DECLARE_DEPRECATED_FEATURE(ver, func) \
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 */
DECLARE_DEPRECATED_FEATURE(2.2, rb_disable_super);
DECLARE_DEPRECATED_FEATURE(2.2, rb_enable_super);
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 2f6afaa0c3..d9aecf3446 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -183,8 +183,6 @@ VALUE rb_complex_polar(VALUE, VALUE);
VALUE rb_Complex(VALUE, VALUE);
#define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
#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 */
VALUE rb_class_new(VALUE);
VALUE rb_mod_init_copy(VALUE, VALUE);