[PATCH 15/30] dmx: Stop setting pPointer and pKeyboard for nothing.
Cyril Brulebois
kibi at debian.org
Fri May 20 08:35:25 PDT 2011
Also remove some code around useless assignments.
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
hw/dmx/input/dmxinputinit.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/hw/dmx/input/dmxinputinit.c b/hw/dmx/input/dmxinputinit.c
index 5cbd620..5f27521 100644
--- a/hw/dmx/input/dmxinputinit.c
+++ b/hw/dmx/input/dmxinputinit.c
@@ -925,7 +925,6 @@ void dmxInputLateReInit(DMXInputInfo *dmxInput)
/** Initialize all of the devices described in \a dmxInput. */
void dmxInputInit(DMXInputInfo *dmxInput)
{
- DeviceIntPtr pPointer = NULL, pKeyboard = NULL;
dmxArg a;
const char *name;
int i;
@@ -1025,12 +1024,6 @@ void dmxInputInit(DMXInputInfo *dmxInput)
for (i = 0; i < dmxInput->numDevs; i++) {
DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[i];
dmxLocal->pDevice = dmxAddDevice(dmxLocal);
- if (dmxLocal->isCore) {
- if (dmxLocal->type == DMX_LOCAL_MOUSE)
- pPointer = dmxLocal->pDevice;
- if (dmxLocal->type == DMX_LOCAL_KEYBOARD)
- pKeyboard = dmxLocal->pDevice;
- }
}
dmxInput->processInputEvents = dmxProcessInputEvents;
--
1.7.5.1
More information about the xorg-devel
mailing list