From 54704e4a504b16bc5da6fc371f7152aa0154178f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 22 Apr 2024 11:55:40 +0200 Subject: [PATCH] mi: drop obsolete miOverlaySetTransFunction() Not used by any (known) drivers. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- mi/mioverlay.c | 11 ----------- mi/mioverlay.h | 1 - 2 files changed, 12 deletions(-) diff --git a/mi/mioverlay.c b/mi/mioverlay.c index b997322a5..0c1d79d70 100644 --- a/mi/mioverlay.c +++ b/mi/mioverlay.c @@ -58,14 +58,9 @@ typedef struct { static DevPrivateKeyRec miOverlayWindowKeyRec; #define miOverlayWindowKey (&miOverlayWindowKeyRec) -static DevPrivateKeyRec miOverlayScreenKeyRec; - -#define miOverlayScreenKey (&miOverlayScreenKeyRec) static void MarkUnderlayWindow(WindowPtr); -#define MIOVERLAY_GET_SCREEN_PRIVATE(pScreen) ((miOverlayScreenPtr) \ - dixLookupPrivate(&(pScreen)->devPrivates, miOverlayScreenKey)) #define MIOVERLAY_GET_WINDOW_PRIVATE(pWin) ((miOverlayWindowPtr) \ dixLookupPrivate(&(pWin)->devPrivates, miOverlayWindowKey)) #define MIOVERLAY_GET_WINDOW_TREE(pWin) \ @@ -102,12 +97,6 @@ miOverlaySetRootClip(ScreenPtr pScreen, Bool enable) /****************************************************************/ -void -miOverlaySetTransFunction(ScreenPtr pScreen, miOverlayTransFunc transFunc) -{ - MIOVERLAY_GET_SCREEN_PRIVATE(pScreen)->MakeTransparent = transFunc; -} - static void MarkUnderlayWindow(WindowPtr pWin) { diff --git a/mi/mioverlay.h b/mi/mioverlay.h index a1e38e596..68a88260a 100644 --- a/mi/mioverlay.h +++ b/mi/mioverlay.h @@ -9,7 +9,6 @@ typedef void (*miOverlayTransFunc) (ScreenPtr, int, BoxPtr); typedef Bool (*miOverlayInOverlayFunc) (WindowPtr); -extern _X_EXPORT void miOverlaySetTransFunction(ScreenPtr, miOverlayTransFunc); extern _X_EXPORT void miOverlaySetRootClip(ScreenPtr, Bool); #endif /* __MIOVERLAY_H */