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