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 <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-07-25 22:39:58 +09:00
parent 715696623e
commit 2cce25275a
-17
View File
@@ -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)