summaryrefslogtreecommitdiff
path: root/src/keysym.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-05-20 20:39:35 +0300
committerRan Benita <ran234@gmail.com>2012-06-09 12:34:57 +0300
commit58b030bb901b77ba97fdaf64fca4403b81445aaf (patch)
treefccb135983c3bf0ae45a97454d87e1698acd2ed5 /src/keysym.c
parent1c27bb8e77d85e3e3c9a4f3003bc429759482135 (diff)
downloadxorg-lib-libxkbcommon-58b030bb901b77ba97fdaf64fca4403b81445aaf.tar.gz
Move XKB_KEY_NoSymbol to xkbcommon-keysyms.h
This avoids a couple of special cases in the code, and is more consistent. Since anyone who includes xkbcommon.h also gets xkbcommon-keysyms.h, and anyone who include xkbcommon-keysyms.h would want NoSymbol anyway, there's no down side. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/keysym.c')
-rw-r--r--src/keysym.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/keysym.c b/src/keysym.c
index 1b32f0b..6004aad 100644
--- a/src/keysym.c
+++ b/src/keysym.c
@@ -44,12 +44,6 @@ xkb_keysym_get_name(xkb_keysym_t ks, char *buffer, size_t size)
return;
}
- /* Not listed in keysymdef.h for hysterical raisins. */
- if (ks == XKB_KEY_NoSymbol) {
- snprintf(buffer, size, "NoSymbol");
- return;
- }
-
/* Try to find it in our hash table. */
if (ks <= 0x1fffffff) {
val1 = ks >> 24;