diff options
author | Ran Benita <ran234@gmail.com> | 2012-09-02 16:33:02 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-09-03 10:25:20 +0300 |
commit | 7e0c49e0847e97fcb42045852aca0eb5d3fcfaa7 (patch) | |
tree | 42d59a6c11ed306aa5904ece436603093dd82882 /src/xkbcomp/action.c | |
parent | 87bfd973331491f7ab54626b61eb3a1ff46f8dcd (diff) | |
download | libxkbcommon-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.c | 7 |
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; |