From: Timo Sirainen Date: Sun, 5 Dec 2010 23:53:47 +0000 (+0000) Subject: Removed unused BITS_IN_UINT and CLAMP macros. X-Git-Tag: 2.1.alpha1~457 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14609d1c87526f49c831d965ebf1720f2e28fcee;p=thirdparty%2Fdovecot%2Fcore.git Removed unused BITS_IN_UINT and CLAMP macros. --- diff --git a/src/lib/macros.h b/src/lib/macros.h index b69715b2b1..092559c622 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -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)) @@ -33,10 +31,6 @@ #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. */