diff options
author | Ran Benita <ran234@gmail.com> | 2014-04-19 15:56:27 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-04-19 16:12:26 +0300 |
commit | 51a1df2f2180f11d80c476f8b240062ae2573f7b (patch) | |
tree | 131f2c139f43cda425e80e9d0e97217d3170cb18 /src/text.c | |
parent | 120c5c317e5691f091664d88724413a504814de4 (diff) | |
download | xorg-lib-libxkbcommon-51a1df2f2180f11d80c476f8b240062ae2573f7b.tar.gz |
keymap: move ModNameToIndex from text.c and use it in keymap.c
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.c')
-rw-r--r-- | src/text.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -218,20 +218,6 @@ ModIndexText(const struct xkb_keymap *keymap, xkb_mod_index_t ndx) return xkb_atom_text(keymap->ctx, darray_item(keymap->mods, ndx).name); } -xkb_mod_index_t -ModNameToIndex(const struct xkb_keymap *keymap, xkb_atom_t name, - enum mod_type type) -{ - xkb_mod_index_t i; - const struct xkb_mod *mod; - - darray_enumerate(i, mod, keymap->mods) - if ((mod->type & type) && name == mod->name) - return i; - - return XKB_MOD_INVALID; -} - const char * ActionTypeText(enum xkb_action_type type) { |