summaryrefslogtreecommitdiff
path: root/hw/dmx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2018-08-07 15:40:13 -0400
committerAdam Jackson <ajax@redhat.com>2018-09-28 16:25:17 -0400
commit03b2125005b1c8d4eb62a4173a74458bbe72807b (patch)
tree6f5cf65b4d9c53e9e330d19464f29f774b4a0c5f /hw/dmx
parenta23eba2a91024d27da45e5aee1f4215f7ec2ae82 (diff)
dix: Remove LegalModifier()
This hasn't done anything besides return TRUE in a long long time. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/dmx')
-rw-r--r--hw/dmx/dmxinput.c9
-rw-r--r--hw/dmx/doc/dmx.xml10
2 files changed, 0 insertions, 19 deletions
diff --git a/hw/dmx/dmxinput.c b/hw/dmx/dmxinput.c
index d201034c6..c099cf18d 100644
--- a/hw/dmx/dmxinput.c
+++ b/hw/dmx/dmxinput.c
@@ -50,15 +50,6 @@
#include "input.h"
#include "mi.h"
-/** Returns TRUE if the key is a valid modifier. For PC-class
- * keyboards, all keys can be used as modifiers, so return TRUE
- * always. */
-Bool
-LegalModifier(unsigned int key, DeviceIntPtr pDev)
-{
- return TRUE;
-}
-
/** Called from dix/main.c on each server generation to initialize
* inputs. All the work is done in dmxInputInit. \see
* dmxInputInit() */
diff --git a/hw/dmx/doc/dmx.xml b/hw/dmx/doc/dmx.xml
index f10cf79dc..1ee748440 100644
--- a/hw/dmx/doc/dmx.xml
+++ b/hw/dmx/doc/dmx.xml
@@ -1077,16 +1077,6 @@ for the device when it was registered/initialized.
</sect3>
-<sect3>
-<title>LegalModifier()</title>
-<!-- dmx/dmxinput.c - currently returns TRUE -->
-<para>LegalModifier() is a required DDX function that can be used to
-restrict which keys may be modifier keys. This seems to be present for
-historical reasons, so this function should simply return TRUE
-unconditionally.
-</para>
-
-</sect3>
</sect2>
<sect2>