Commit b65980ccffc0902a65ab78b661098945c50cb42e

Ran Benita 2012-10-05T15:10:41

state: don't needlessly fetch the xkb_key It's a leftover. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/state.c b/src/state.c
index d9338ee..3f1b2f0 100644
--- a/src/state.c
+++ b/src/state.c
@@ -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)