dix: remove ConvertBackToXI.

This was a temporary solution for the internal-events rework and is not needed
anymore.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-02-23 16:38:41 +10:00
parent 26cf709e71
commit a180c23679

View File

@ -327,26 +327,3 @@ GetXIType(InternalEvent *event)
return xitype;
}
/*
* FIXME: A temporary solution to make the server bisectable. Take the event
* @event and copy it into @ev, returning the number of events in @ev.
*/
int
ConvertBackToXI(InternalEvent *event, xEvent *ev)
{
int count = 0;
int evlen, i;
xEvent *xi = NULL;
if (EventToXI(event, &xi, &count))
ErrorF("[dix] conversion to XI failed\n");
if (xi->u.u.type == GenericEvent)
evlen = (GEV(xi))->length * 4 + 32;
else
evlen = count * 32;
for (i = 0; i < count; i++)
memcpy(&ev[i], &xi[i], evlen);
return count;
}