Commit ae576e85b710bee2e7a48b3191f60b3ba8ef913e

Ran Benita 2012-08-30T17:15:39

state: remove unneeded optimization The code that follows does exactly that. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/state.c b/src/state.c
index 0f93cc7..6263fba 100644
--- a/src/state.c
+++ b/src/state.c
@@ -541,9 +541,6 @@ xkb_state_led_update_all(struct xkb_state *state)
         xkb_mod_mask_t mod_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_UseBase)
                 mod_mask |= state->base_mods;