From a2068d666295349f04e74ec102d5ed922029d57f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 21 Oct 2025 10:41:27 +0200 Subject: [PATCH] Xext: shm: drop obsolete ShmScreenClose() Since it's now doing nothing more than unhooking itself, we really don't need it anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/shm.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Xext/shm.c b/Xext/shm.c index b6530a53ef..055ca316a0 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -197,12 +197,6 @@ CheckForShmSyscall(void) #endif -static void -ShmScreenClose(CallbackListPtr *pcbl, ScreenPtr pScreen, void *unused) -{ - dixScreenUnhookClose(pScreen, ShmScreenClose); -} - static Bool privatesRegistered = FALSE; static Bool @@ -1391,7 +1385,6 @@ ShmExtensionInit(void) screen_priv->shmFuncs = &miFuncs; if (!screen_priv->shmFuncs->CreatePixmap) sharedPixmaps = xFalse; - dixScreenHookClose(walkScreen, ShmScreenClose); }); if (sharedPixmaps) DIX_FOR_EACH_SCREEN({