Xi: remove now obsolete oldXkbInfo.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
Peter Hutterer 2009-01-28 20:44:47 +10:00 committed by Peter Hutterer
parent 5e0967f5fc
commit caade11b84

View File

@ -474,7 +474,6 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
if (from->key) if (from->key)
{ {
struct _XkbSrvInfo *oldXkbInfo;
if (!to->key) if (!to->key)
{ {
classes = dixLookupPrivate(&to->devPrivates, classes = dixLookupPrivate(&to->devPrivates,
@ -489,8 +488,6 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
classes->key = NULL; classes->key = NULL;
} }
oldXkbInfo = to->key->xkbInfo;
to->key->xkbInfo = oldXkbInfo;
CopyKeyClass(from, to); CopyKeyClass(from, to);
} else if (to->key && !from->key) } else if (to->key && !from->key)
{ {