aboutsummaryrefslogtreecommitdiffstats
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 12:41:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 12:41:14 +0000
commitca98a17a5e5846e6b7debcfc2672b3010df3d003 (patch)
treec9553267bc12214b034e7e55302663545a717808 /rational.c
parentb9dc71e20d5b108dad37403fca4e94272a3148cb (diff)
downloadruby-ca98a17a5e5846e6b7debcfc2672b3010df3d003.tar.gz
rational.c: remove duplicate macros
* rational.c (RRATIONAL_SET_{NUM,DEN}): also defined in internal.h since r53887. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/rational.c b/rational.c
index 64fc10ce47..6e07188729 100644
--- a/rational.c
+++ b/rational.c
@@ -388,9 +388,6 @@ f_lcm(VALUE x, VALUE y)
#define get_dat2(x,y) \
struct RRational *adat = RRATIONAL(x), *bdat = RRATIONAL(y)
-#define RRATIONAL_SET_NUM(rat, n) RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->num,(n))
-#define RRATIONAL_SET_DEN(rat, d) RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->den,(d))
-
inline static VALUE
nurat_s_new_internal(VALUE klass, VALUE num, VALUE den)
{