state: remove unneeded optimization

The code that follows does exactly that.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-08-30 17:15:39 +03:00
parent a45b7d7559
commit ae576e85b7
1 changed files with 0 additions and 3 deletions

View File

@ -541,9 +541,6 @@ xkb_state_led_update_all(struct xkb_state *state)
xkb_mod_mask_t mod_mask = 0; xkb_mod_mask_t mod_mask = 0;
uint32_t group_mask = 0; uint32_t group_mask = 0;
if (!map->which_mods && !map->which_groups && !map->ctrls)
continue;
if (map->which_mods & XkbIM_UseAnyMods) { if (map->which_mods & XkbIM_UseAnyMods) {
if (map->which_mods & XkbIM_UseBase) if (map->which_mods & XkbIM_UseBase)
mod_mask |= state->base_mods; mod_mask |= state->base_mods;