]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Remove dead code
authorBen Kaduk <kaduk@mit.edu>
Fri, 6 Jul 2012 00:56:51 +0000 (20:56 -0400)
committerBen Kaduk <kaduk@mit.edu>
Fri, 6 Jul 2012 00:56:51 +0000 (20:56 -0400)
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

index fd98dca57d71b051c9688877c1bfb11ebe3e23e9..e39cd669643ea7daf0c9b6c4796edabe1a5a5e2c 100644 (file)
@@ -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);