summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-06-08 15:44:41 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-14 13:19:55 +0900
commite60cd14d85b35c9e60485e640c08eebf539c1cfc (patch)
tree9a7873cb00054aab1f90d736d1ebe6aa83c80c72
parent8d3a08457292d027070920e4fb3244445a142a3d (diff)
ON_DEBUG: delete unused macro
This is no longer used.
-rw-r--r--bignum.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/bignum.c b/bignum.c
index 310e731934..ed9c65e80d 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2914,30 +2914,6 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIGIT *rds, size_t rn, const BDIGIT *xds, s
# define BIGNUM_DEBUG (0+RUBY_DEBUG)
#endif
-#if BIGNUM_DEBUG
-#define ON_DEBUG(x) do { x; } while (0)
-static void
-dump_bignum(VALUE x)
-{
- long i;
- printf("%c0x0", BIGNUM_SIGN(x) ? '+' : '-');
- for (i = BIGNUM_LEN(x); i--; ) {
- printf("_%0*"PRIxBDIGIT, SIZEOF_BDIGIT*2, BDIGITS(x)[i]);
- }
- printf(", len=%"PRIuSIZE, BIGNUM_LEN(x));
- puts("");
-}
-
-static VALUE
-rb_big_dump(VALUE x)
-{
- dump_bignum(x);
- return x;
-}
-#else
-#define ON_DEBUG(x)
-#endif
-
static int
bigzero_p(VALUE x)
{