]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed unused BITS_IN_UINT and CLAMP macros.
authorTimo Sirainen <tss@iki.fi>
Sun, 5 Dec 2010 23:53:47 +0000 (23:53 +0000)
committerTimo Sirainen <tss@iki.fi>
Sun, 5 Dec 2010 23:53:47 +0000 (23:53 +0000)
src/lib/macros.h

index b69715b2b14b250af67569b7362c6f5ad256f3cf..092559c62223383ac002e9be0267fa2a196fc4e6 100644 (file)
@@ -18,8 +18,6 @@
 #define N_ELEMENTS(arr) \
        (sizeof(arr) / sizeof((arr)[0]))
 
-#define BITS_IN_UINT (CHAR_BIT * sizeof(unsigned int))
-
 #define MEM_ALIGN(size) \
        (((size) + MEM_ALIGN_SIZE-1) & ~((unsigned int) MEM_ALIGN_SIZE-1))
 
 #define I_MIN(a, b)  (((a) < (b)) ? (a) : (b))
 #define I_MAX(a, b)  (((a) > (b)) ? (a) : (b))
 
-#undef CLAMP
-#define CLAMP(x, low, high) \
-       (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
-
 /* make it easier to cast from/to pointers. assumes that
    sizeof(size_t) == sizeof(void *) and they're both the largest datatypes
    that are allowed to be used. so, long long isn't safe with these. */