diff options
author | Matt Caswell <matt@openssl.org> | 2015-03-12 14:08:21 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-17 14:49:47 +0000 |
commit | d8d2e503593ac429fa04b96c7722dcf1c33bdeb3 (patch) | |
tree | 6ce028405bd03d70587ab888971945056d8c4cbf /crypto/bio | |
parent | 6c4ce00753c5763cf836f6fec9ec07ed7c2e6e03 (diff) |
Remove dead code from crypto
Some miscellaneous removal of dead code from lib crypto.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit b7573c597c1932ef709b2455ffab47348b5c54e5)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_print.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index f7940f28be..c2cf6e619e 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -592,7 +592,6 @@ fmtfp(char **sbuffer, int fplace = 0; int padlen = 0; int zpadlen = 0; - int caps = 0; long intpart; long fracpart; long max10; @@ -630,8 +629,7 @@ fmtfp(char **sbuffer, /* convert integer part */ do { - iconvert[iplace++] = - (caps ? "0123456789ABCDEF" : "0123456789abcdef")[intpart % 10]; + iconvert[iplace++] = "0123456789"[intpart % 10]; intpart = (intpart / 10); } while (intpart && (iplace < (int)sizeof(iconvert))); if (iplace == sizeof iconvert) @@ -640,8 +638,7 @@ fmtfp(char **sbuffer, /* convert fractional part */ do { - fconvert[fplace++] = - (caps ? "0123456789ABCDEF" : "0123456789abcdef")[fracpart % 10]; + fconvert[fplace++] = "0123456789"[fracpart % 10]; fracpart = (fracpart / 10); } while (fplace < max); if (fplace == sizeof fconvert) |