projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4009d
)
state: don't needlessly fetch the xkb_key
author
Ran Benita
<ran234@gmail.com>
Fri, 5 Oct 2012 13:10:41 +0000
(15:10 +0200)
committer
Ran 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
patch
|
blob
|
history
diff --git
a/src/state.c
b/src/state.c
index
d9338ee
..
3f1b2f0
100644
(file)
--- 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)