Nuke the keyboard bell code.

It did nothing, and the core won't invoke it anymore anyway.
This commit is contained in:
Adam Jackson
2008-03-08 16:52:17 -05:00
parent bf0848ec8e
commit f5bfc7ec3c

View File

@@ -404,12 +404,6 @@ static KeySym map[] = {
/* 0x7f */ XK_Multi_key, NoSymbol,
};
static void
EvdevKbdBell(int percent, DeviceIntPtr dev, pointer ctrl, int unused)
{
/* hat */
}
static void
EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
{
@@ -488,7 +482,7 @@ EvdevAddKeyClass(DeviceIntPtr device)
{
xf86Msg(X_CONFIG, "XKB: disabled\n");
if (!InitKeyboardDeviceStruct((DevicePtr)device, &keySyms, modMap,
EvdevKbdBell, EvdevKbdCtrl))
NULL, EvdevKbdCtrl))
return !Success;
}
#ifdef XKB
@@ -507,7 +501,7 @@ EvdevAddKeyClass(DeviceIntPtr device)
pEvdev->xkb_layout, pEvdev->xkb_variant,
pEvdev->xkb_options);
if (!XkbInitKeyboardDeviceStruct(device, &pEvdev->xkbnames,
&keySyms, modMap, EvdevKbdBell,
&keySyms, modMap, NULL,
EvdevKbdCtrl))
return !Success;
}