From 2cce25275a95d38c4d4802d1a248aa3914ad9c66 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 25 Jul 2025 22:39:58 +0900 Subject: [PATCH] mruby-bigint: remove unused mpz_set_pool function Removed final unused pool function mpz_set_pool (17 lines) which was no longer referenced after pool function elimination. Build now compiles without unused function warnings. Co-authored-by: Claude --- mrbgems/mruby-bigint/core/bigint.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mrbgems/mruby-bigint/core/bigint.c b/mrbgems/mruby-bigint/core/bigint.c index 49412c735..bdcb3c2a0 100644 --- a/mrbgems/mruby-bigint/core/bigint.c +++ b/mrbgems/mruby-bigint/core/bigint.c @@ -2592,23 +2592,6 @@ mpz_gcd(mrb_state *mrb, mpz_t *gg, mpz_t *aa, mpz_t *bb) mpz_clear(mrb, &a); } -static int -mpz_set_pool(mrb_state *mrb, mpz_t *result, mpz_t *operand, mpz_pool_t *pool) { - if (!operand || operand->sz == 0) { - result->sz = 0; - result->sn = 0; - return 1; - } - - /* Copy limbs */ - for (size_t i = 0; i < operand->sz && i < result->sz; i++) { - result->p[i] = operand->p[i]; - } - result->sz = (operand->sz < result->sz) ? operand->sz : result->sz; - result->sn = operand->sn; - - return 1; -} static size_t mpz_bits(const mpz_t *x)