miext: sync: drop useless CloseScreen wrapping

This wrapped CloseScreen function doesn't do anything actually useful,
so no need to keep it around any longer. It used to do a free() on the
private data (which had been wrong in the first place) but this had
been removed and so the whole function became useless, it had been
forgotten to be swept away.

Fixes: 469d5bf8b7
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-04-28 15:32:43 +02:00
parent d1e641739b
commit 05e5ee3671
2 changed files with 0 additions and 17 deletions

View File

@ -149,16 +149,6 @@ miSyncGetScreenFuncs(ScreenPtr pScreen)
return &pScreenPriv->funcs;
}
static Bool
SyncCloseScreen(ScreenPtr pScreen)
{
SyncScreenPrivPtr pScreenPriv = SYNC_SCREEN_PRIV(pScreen);
pScreen->CloseScreen = pScreenPriv->CloseScreen;
return (*pScreen->CloseScreen) (pScreen);
}
Bool
miSyncSetup(ScreenPtr pScreen)
{
@ -179,10 +169,6 @@ miSyncSetup(ScreenPtr pScreen)
if (!pScreenPriv->funcs.CreateFence) {
pScreenPriv->funcs = miSyncScreenFuncs;
/* Wrap CloseScreen to clean up */
pScreenPriv->CloseScreen = pScreen->CloseScreen;
pScreen->CloseScreen = SyncCloseScreen;
}
return TRUE;

View File

@ -13,9 +13,6 @@ extern DevPrivateKeyRec miSyncScreenPrivateKey;
typedef struct _syncScreenPriv {
/* Wrappable sync-specific screen functions */
SyncScreenFuncsRec funcs;
/* Wrapped screen functions */
CloseScreenProcPtr CloseScreen;
} SyncScreenPrivRec, *SyncScreenPrivPtr;
#define SYNC_SCREEN_PRIV(pScreen) \