diff options
author | Ben Kaduk <kaduk@mit.edu> | 2012-07-05 20:56:51 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-07-05 20:56:51 -0400 |
commit | 1df4d98ca14d884808b1d4f746edd4c7f55dbd7e (patch) | |
tree | 07bd00bbd850db84b121887067331fed0b7ddc8b | |
parent | d8c923424cd3c7c1b06dc8071639da13cad0524d (diff) | |
download | krb5-1df4d98ca14d884808b1d4f746edd4c7f55dbd7e.tar.gz krb5-1df4d98ca14d884808b1d4f746edd4c7f55dbd7e.tar.xz krb5-1df4d98ca14d884808b1d4f746edd4c7f55dbd7e.zip |
Remove dead code
This (hair-raising) macro is not referenced anywhere in the tree,
so remove it and the associated comment.
-rw-r--r-- | src/lib/krb5/krb/str_conv.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/krb5/krb/str_conv.c b/src/lib/krb5/krb/str_conv.c index fd98dca57d..e39cd66964 100644 --- a/src/lib/krb5/krb/str_conv.c +++ b/src/lib/krb5/krb/str_conv.c @@ -281,17 +281,6 @@ krb5_deltat_to_string(krb5_deltat deltat, char *buffer, size_t buflen) int days, hours, minutes, seconds; krb5_deltat dt; - /* - * We want something like ceil(log10(2**(nbits-1))) + 1. That log - * value is log10(2)*(nbits-1) or log10(2**8)*(nbits-1)/8. So, - * 2.4... is log10(256), rounded up. Add one to handle leading - * minus, and one more to force int cast to round the value up. - * This doesn't include room for a trailing nul. - * - * This will break if bytes are more than 8 bits. - */ -#define MAX_CHARS_FOR_INT_TYPE(TYPE) ((int) (2 + 2.408241 * sizeof (TYPE))) - days = (int) (deltat / (24*3600L)); dt = deltat % (24*3600L); hours = (int) (dt / 3600); |