state: don't needlessly fetch the xkb_key
authorRan Benita <ran234@gmail.com>
Fri, 5 Oct 2012 13:10:41 +0000 (15:10 +0200)
committerRan Benita <ran234@gmail.com>
Sat, 6 Oct 2012 19:41:59 +0000 (21:41 +0200)
It's a leftover.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c

index d9338ee..3f1b2f0 100644 (file)
@@ -744,10 +744,6 @@ xkb_state_key_get_syms(struct xkb_state *state, xkb_keycode_t kc,
 {
     xkb_layout_index_t layout;
     xkb_level_index_t level;
-    const struct xkb_key *key = XkbKey(state->keymap, kc);
-
-    if (!key)
-        return -1;
 
     layout = xkb_state_key_get_layout(state, kc);
     if (layout == XKB_LAYOUT_INVALID)