diff options
author | Rich Salz <rsalz@openssl.org> | 2015-02-08 18:48:09 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-02-08 18:48:09 -0500 |
commit | 06cf881a3a10d5af3c1255c08cfd0c6ddb5f1cc3 (patch) | |
tree | d19b13704f85d00d42d0f010a90ecb362a638c85 /crypto/bn/bn_lib.c | |
parent | 3ffbe008083dcaad282622e8e4be69bb29bc6315 (diff) |
Final (for me, for now) dead code cleanup
This is a final pass looking for '#if 0'/'#if 1' controls and
removing the appropriate pieces.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r-- | crypto/bn/bn_lib.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index c742db6f1f..c3164fa8aa 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -384,29 +384,6 @@ BIGNUM *bn_expand2(BIGNUM *b, int words) b->dmax = words; } -/* None of this should be necessary because of what b->top means! */ -#if 0 - /* - * NB: bn_wexpand() calls this only if the BIGNUM really has to grow - */ - if (b->top < b->dmax) { - int i; - BN_ULONG *A = &(b->d[b->top]); - for (i = (b->dmax - b->top) >> 3; i > 0; i--, A += 8) { - A[0] = 0; - A[1] = 0; - A[2] = 0; - A[3] = 0; - A[4] = 0; - A[5] = 0; - A[6] = 0; - A[7] = 0; - } - for (i = (b->dmax - b->top) & 7; i > 0; i--, A++) - A[0] = 0; - assert(A == &(b->d[b->dmax])); - } -#endif bn_check_top(b); return b; } |