From 35cfefa682dbbeaebac37043b288d1f2273f7ed4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 1 Apr 2025 14:18:24 +0200 Subject: [PATCH] XI: drop now obsolete SReplyIDispatch() nothing else to do for it anymore, since all previous callers now have been migrated to do the byte-swapping directly, so it can be dropped entirely. Signed-off-by: Enrico Weigelt, metux IT consult --- Xi/extinit.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Xi/extinit.c b/Xi/extinit.c index c7876ebf3..6b3262ccc 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -409,21 +409,6 @@ SProcIDispatch(ClientPtr client) return (*SProcIVector[stuff->data]) (client); } -/********************************************************************** - * - * SReplyIDispatch - * Swap any replies defined in this extension. - * - */ - -static void _X_COLD -SReplyIDispatch(ClientPtr client, int len, xGrabDeviceReply * rep) -{ - /* All we look at is the type field */ - /* This is common to all replies */ - FatalError("XINPUT confused sending swapped reply"); -} - /************************************************************************ * * This function swaps the DeviceValuator event. @@ -1093,7 +1078,6 @@ RestoreExtensionEvents(void) static void IResetProc(ExtensionEntry * unused) { - ReplySwapVector[IReqCode] = ReplyNotSwappd; EventSwapVector[DeviceValuator] = NotImplemented; EventSwapVector[DeviceKeyPress] = NotImplemented; EventSwapVector[DeviceKeyRelease] = NotImplemented; @@ -1255,7 +1239,6 @@ XInputExtensionInit(void) if (!RT_INPUTCLIENT) FatalError("Failed to add resource type for XI.\n"); FixExtensionEvents(extEntry); - ReplySwapVector[IReqCode] = (ReplySwapPtr) SReplyIDispatch; EventSwapVector[DeviceValuator] = SEventIDispatch; EventSwapVector[DeviceKeyPress] = SEventIDispatch; EventSwapVector[DeviceKeyRelease] = SEventIDispatch;