krb5 commit: Remove dead code
Benjamin Kaduk
kaduk at MIT.EDU
Thu Jul 5 21:12:24 EDT 2012
https://github.com/krb5/krb5/commit/1df4d98ca14d884808b1d4f746edd4c7f55dbd7e
commit 1df4d98ca14d884808b1d4f746edd4c7f55dbd7e
Author: Ben Kaduk <kaduk at mit.edu>
Date: Thu Jul 5 20:56:51 2012 -0400
Remove dead code
This (hair-raising) macro is not referenced anywhere in the tree,
so remove it and the associated comment.
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 fd98dca..e39cd66 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);
More information about the cvs-krb5
mailing list