summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-04-19 15:56:27 +0300
committerRan Benita <ran234@gmail.com>2014-04-19 16:12:26 +0300
commit51a1df2f2180f11d80c476f8b240062ae2573f7b (patch)
tree131f2c139f43cda425e80e9d0e97217d3170cb18 /src/text.c
parent120c5c317e5691f091664d88724413a504814de4 (diff)
downloadxorg-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.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/text.c b/src/text.c
index f3a09e8..2c58b66 100644
--- a/src/text.c
+++ b/src/text.c
@@ -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)
{