From badafca022275810c437891750a899ede7e15fa3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 May 2025 13:07:13 +0200 Subject: [PATCH] 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: 9508a382f8a9f241dab097d921b6d290c1c3a776 Signed-off-by: Enrico Weigelt, metux IT consult --- fb/fb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/fb/fb.h b/fb/fb.h index f20770187..8f4d7292a 100644 --- a/fb/fb.h +++ b/fb/fb.h @@ -126,14 +126,12 @@ extern _X_EXPORT void fbSetBits(FbStip * bits, int stride, FbStip data); #if BITMAP_BIT_ORDER == LSBFirst #define FbScrLeft(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 FbStipMoveLsb(x,s,n) (FbStipRight (x,(s)-(n))) #define FbPatternOffsetBits 0 #else #define FbScrLeft(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 FbStipMoveLsb(x,s,n) (x) #define FbPatternOffsetBits (sizeof (FbBits) - 1)