vmod: remove useless keymap initialization

keymap->vmods is not touched until UpdateModifiersFromCompat,
where it initialized and used.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-08-28 11:11:40 +03:00
parent f410622b4b
commit ab1566cd6b
1 changed files with 0 additions and 3 deletions

View File

@ -43,9 +43,6 @@ ClearVModInfo(VModInfo *info, struct xkb_keymap *keymap)
info->defined = info->available = 0; info->defined = info->available = 0;
for (i = 0; i < XkbNumVirtualMods; i++)
keymap->vmods[i] = XkbNoModifierMask;
for (i = 0, bit = 1; i < XkbNumVirtualMods; i++, bit <<= 1) for (i = 0, bit = 1; i < XkbNumVirtualMods; i++, bit <<= 1)
if (keymap->vmod_names[i]) if (keymap->vmod_names[i])
info->defined |= bit; info->defined |= bit;