summaryrefslogtreecommitdiff
path: root/src/xkbcomp/action.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-09-02 16:33:02 +0300
committerRan Benita <ran234@gmail.com>2012-09-03 10:25:20 +0300
commit7e0c49e0847e97fcb42045852aca0eb5d3fcfaa7 (patch)
tree42d59a6c11ed306aa5904ece436603093dd82882 /src/xkbcomp/action.c
parent87bfd973331491f7ab54626b61eb3a1ff46f8dcd (diff)
downloadlibxkbcommon-7e0c49e0847e97fcb42045852aca0eb5d3fcfaa7.tar.gz
libxkbcommon-7e0c49e0847e97fcb42045852aca0eb5d3fcfaa7.tar.bz2
libxkbcommon-7e0c49e0847e97fcb42045852aca0eb5d3fcfaa7.zip
action: remove redundant check
The NoAction handler always errors out with the same message. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/action.c')
-rw-r--r--src/xkbcomp/action.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c
index 8a3677e..720b99d 100644
--- a/src/xkbcomp/action.c
+++ b/src/xkbcomp/action.c
@@ -1326,13 +1326,6 @@ SetActionField(struct xkb_keymap *keymap, const char *elem, const char *field,
if (!stringToAction(elem, &action))
return false;
- if (action == XkbSA_NoAction) {
- log_err(keymap->ctx,
- "\"%s\" is not a valid field in a NoAction action\n",
- field);
- return false;
- }
-
if (!stringToField(field, &action_field)) {
log_err(keymap->ctx, "\"%s\" is not a legal field name\n", field);
return false;