From 7d400657f5dec9097b8c5b4a93d526743b359f82 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 14 Jul 2012 19:53:13 +0300 Subject: [PATCH] Remove unused control num_groups We have xkb_map_num_groups for that. Signed-off-by: Ran Benita --- src/xkb-priv.h | 1 - src/xkbcomp/symbols.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/xkb-priv.h b/src/xkb-priv.h index b58ecc1..7a99ab7 100644 --- a/src/xkb-priv.h +++ b/src/xkb-priv.h @@ -333,7 +333,6 @@ struct xkb_names { }; struct xkb_controls { - unsigned char num_groups; /* unsigned char groups_wrap; */ /* struct xkb_mods internal; */ /* struct xkb_mods ignore_lock; */ diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c index 1df5531..1c7396c 100644 --- a/src/xkbcomp/symbols.c +++ b/src/xkbcomp/symbols.c @@ -2029,9 +2029,6 @@ CopySymbolsDef(struct xkb_keymap *keymap, KeyInfo *key, int start_from) keymap->server->explicit[kc] |= XkbExplicitAutoRepeatMask; } - if (nGroups > keymap->ctrls->num_groups) - keymap->ctrls->num_groups = nGroups; - /* do the same thing for the next key */ CopySymbolsDef(keymap, key, kc + 1); return true;