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 <info@metux.net>
This commit is contained in:
parent
a4d8e1a231
commit
35cfefa682
17
Xi/extinit.c
17
Xi/extinit.c
|
@ -409,21 +409,6 @@ SProcIDispatch(ClientPtr client)
|
||||||
return (*SProcIVector[stuff->data]) (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.
|
* This function swaps the DeviceValuator event.
|
||||||
|
@ -1093,7 +1078,6 @@ RestoreExtensionEvents(void)
|
||||||
static void
|
static void
|
||||||
IResetProc(ExtensionEntry * unused)
|
IResetProc(ExtensionEntry * unused)
|
||||||
{
|
{
|
||||||
ReplySwapVector[IReqCode] = ReplyNotSwappd;
|
|
||||||
EventSwapVector[DeviceValuator] = NotImplemented;
|
EventSwapVector[DeviceValuator] = NotImplemented;
|
||||||
EventSwapVector[DeviceKeyPress] = NotImplemented;
|
EventSwapVector[DeviceKeyPress] = NotImplemented;
|
||||||
EventSwapVector[DeviceKeyRelease] = NotImplemented;
|
EventSwapVector[DeviceKeyRelease] = NotImplemented;
|
||||||
|
@ -1255,7 +1239,6 @@ XInputExtensionInit(void)
|
||||||
if (!RT_INPUTCLIENT)
|
if (!RT_INPUTCLIENT)
|
||||||
FatalError("Failed to add resource type for XI.\n");
|
FatalError("Failed to add resource type for XI.\n");
|
||||||
FixExtensionEvents(extEntry);
|
FixExtensionEvents(extEntry);
|
||||||
ReplySwapVector[IReqCode] = (ReplySwapPtr) SReplyIDispatch;
|
|
||||||
EventSwapVector[DeviceValuator] = SEventIDispatch;
|
EventSwapVector[DeviceValuator] = SEventIDispatch;
|
||||||
EventSwapVector[DeviceKeyPress] = SEventIDispatch;
|
EventSwapVector[DeviceKeyPress] = SEventIDispatch;
|
||||||
EventSwapVector[DeviceKeyRelease] = SEventIDispatch;
|
EventSwapVector[DeviceKeyRelease] = SEventIDispatch;
|
||||||
|
|
Loading…
Reference in New Issue