fb: drop commented-out FbLeftBits and FbLeftBits macros

Not used anywhere, so can be dropped. They always have been commented-out
since added over two decades ago.

See: 9508a382f8

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-05 13:07:13 +02:00
parent c3fe57f095
commit badafca022

View File

@ -126,14 +126,12 @@ extern _X_EXPORT void fbSetBits(FbStip * bits, int stride, FbStip data);
#if BITMAP_BIT_ORDER == LSBFirst #if BITMAP_BIT_ORDER == LSBFirst
#define FbScrLeft(x,n) ((x) >> (n)) #define FbScrLeft(x,n) ((x) >> (n))
#define FbScrRight(x,n) ((x) << (n)) #define FbScrRight(x,n) ((x) << (n))
/* #define FbLeftBits(x,n) ((x) & ((((FbBits) 1) << (n)) - 1)) */
#define FbLeftStipBits(x,n) ((x) & ((((FbStip) 1) << (n)) - 1)) #define FbLeftStipBits(x,n) ((x) & ((((FbStip) 1) << (n)) - 1))
#define FbStipMoveLsb(x,s,n) (FbStipRight (x,(s)-(n))) #define FbStipMoveLsb(x,s,n) (FbStipRight (x,(s)-(n)))
#define FbPatternOffsetBits 0 #define FbPatternOffsetBits 0
#else #else
#define FbScrLeft(x,n) ((x) << (n)) #define FbScrLeft(x,n) ((x) << (n))
#define FbScrRight(x,n) ((x) >> (n)) #define FbScrRight(x,n) ((x) >> (n))
/* #define FbLeftBits(x,n) ((x) >> (FB_UNIT - (n))) */
#define FbLeftStipBits(x,n) ((x) >> (FB_STIP_UNIT - (n))) #define FbLeftStipBits(x,n) ((x) >> (FB_STIP_UNIT - (n)))
#define FbStipMoveLsb(x,s,n) (x) #define FbStipMoveLsb(x,s,n) (x)
#define FbPatternOffsetBits (sizeof (FbBits) - 1) #define FbPatternOffsetBits (sizeof (FbBits) - 1)