dix: remove unused GuessFreePointerDevice().
Not used since the MD/SD hierarchy was introduced many moons ago.
This commit is contained in:
parent
12599af285
commit
7c5dec9f71
|
@ -2616,46 +2616,6 @@ GetPairedDevice(DeviceIntPtr dev)
|
|||
return dev->spriteInfo->paired;
|
||||
}
|
||||
|
||||
/* Guess a pointer that could be a good one for pairing. Any pointer that is
|
||||
* not yet paired with keyboard is considered a good one.
|
||||
* If no pointer is found, the last real pointer is chosen. If that doesn't
|
||||
* work either, we take the core pointer.
|
||||
*/
|
||||
DeviceIntPtr
|
||||
GuessFreePointerDevice()
|
||||
{
|
||||
DeviceIntPtr it, it2;
|
||||
DeviceIntPtr lastRealPtr = NULL;
|
||||
|
||||
it = inputInfo.devices;
|
||||
|
||||
while(it)
|
||||
{
|
||||
/* found device with a sprite? */
|
||||
if (it->spriteInfo->spriteOwner)
|
||||
{
|
||||
lastRealPtr = it;
|
||||
|
||||
it2 = inputInfo.devices;
|
||||
while(it2)
|
||||
{
|
||||
/* something paired with it? */
|
||||
if (it != it2 &&
|
||||
it2->spriteInfo->sprite == it->spriteInfo->sprite)
|
||||
break;
|
||||
|
||||
it2 = it2->next;
|
||||
}
|
||||
|
||||
/* woohoo! no pairing set up for 'it' yet */
|
||||
if (!it2)
|
||||
return it;
|
||||
}
|
||||
it = it->next;
|
||||
}
|
||||
|
||||
return (lastRealPtr) ? lastRealPtr : inputInfo.pointer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new master device (== one pointer, one keyboard device).
|
||||
|
|
|
@ -518,8 +518,6 @@ extern DeviceIntPtr GetPairedDevice(DeviceIntPtr kbd);
|
|||
|
||||
extern Bool RegisterPairingClient(ClientPtr client);
|
||||
|
||||
extern DeviceIntPtr GuessFreePointerDevice(void);
|
||||
|
||||
extern int AllocMasterDevice(ClientPtr client,
|
||||
char* name,
|
||||
DeviceIntPtr* ptr,
|
||||
|
|
Loading…
Reference in New Issue
Block a user