[ruby/bigdecimal] Remove set but unused variable
This `prec` has not been used since https://github.com/ruby/bigdecimal/commit/1f5c46dbdd1c. https://github.com/ruby/bigdecimal/commit/08a0ad563d
This commit is contained in:
parent
957595f218
commit
8ec95c6074
@ -7171,7 +7171,6 @@ VpSqrt(Real *y, Real *x)
|
||||
Real *r = NULL;
|
||||
size_t y_prec;
|
||||
SIGNED_VALUE n, e;
|
||||
SIGNED_VALUE prec;
|
||||
ssize_t nr;
|
||||
double val;
|
||||
|
||||
@ -7210,12 +7209,6 @@ VpSqrt(Real *y, Real *x)
|
||||
nr = 0;
|
||||
y_prec = y->MaxPrec;
|
||||
|
||||
prec = x->exponent - (ssize_t)y_prec;
|
||||
if (x->exponent > 0)
|
||||
++prec;
|
||||
else
|
||||
--prec;
|
||||
|
||||
VpVtoD(&val, &e, x); /* val <- x */
|
||||
e /= (SIGNED_VALUE)BASE_FIG;
|
||||
n = e / 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user