[pypy-commit] pypy default: remove unused argument (and uncovered condition)

cfbolz pypy.commits at gmail.com
Sun Feb 4 07:53:09 EST 2018


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: 
Changeset: r93750:cfcbece09877
Date: 2018-02-04 13:00 +0100
http://bitbucket.org/pypy/pypy/changeset/cfcbece09877/

Log:	remove unused argument (and uncovered condition)

diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -1823,16 +1823,14 @@
     ret._normalize()
     return ret
 
-def _inplace_divrem1(pout, pin, n, size=0):
+def _inplace_divrem1(pout, pin, n):
     """
     Divide bigint pin by non-zero digit n, storing quotient
     in pout, and returning the remainder. It's OK for pin == pout on entry.
     """
     rem = _widen_digit(0)
     assert n > 0 and n <= MASK
-    if not size:
-        size = pin.numdigits()
-    size -= 1
+    size = pin.numdigits() - 1
     while size >= 0:
         rem = (rem << SHIFT) | pin.widedigit(size)
         hi = rem // n


More information about the pypy-commit mailing list