summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-09-02 18:51:26 +0300
committerRan Benita <ran234@gmail.com>2012-09-02 18:52:46 +0300
commit8c6694fd5833b5b69e5c0f1cc550d24257b0336e (patch)
treea613b6b028f2ae0ea0bdf0dcabaec76a3a3478d9 /src
parent6e676cb7d89f0c3a7e133c6b007264cd381d74cc (diff)
compat: remove "flags" field from xkb_indicator_map
We don't set this field any more. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/keymap-dump.c6
-rw-r--r--src/xkb-priv.h1
-rw-r--r--src/xkbcomp/compat.c3
3 files changed, 3 insertions, 7 deletions
diff --git a/src/keymap-dump.c b/src/keymap-dump.c
index 1722d78..949c595 100644
--- a/src/keymap-dump.c
+++ b/src/keymap-dump.c
@@ -579,9 +579,9 @@ write_compat(struct xkb_keymap *keymap, struct buf *buf)
for (i = 0; i < XkbNumIndicators; i++) {
struct xkb_indicator_map *map = &keymap->indicators[i];
- if (map->flags == 0 && map->which_groups == 0 &&
- map->groups == 0 && map->which_mods == 0 &&
- map->mods.mods == 0 && map->ctrls == 0)
+ if (map->which_groups == 0 && map->groups == 0 &&
+ map->which_mods == 0 && map->mods.mods == 0 &&
+ map->ctrls == 0)
continue;
write_indicator_map(keymap, buf, i);
}
diff --git a/src/xkb-priv.h b/src/xkb-priv.h
index cfa4183..1165812 100644
--- a/src/xkb-priv.h
+++ b/src/xkb-priv.h
@@ -282,7 +282,6 @@ struct xkb_sym_interpret {
};
struct xkb_indicator_map {
- unsigned char flags;
unsigned char which_groups;
uint32_t groups;
unsigned char which_mods;
diff --git a/src/xkbcomp/compat.c b/src/xkbcomp/compat.c
index b18537b..c19de03 100644
--- a/src/xkbcomp/compat.c
+++ b/src/xkbcomp/compat.c
@@ -163,7 +163,6 @@ typedef struct _LEDInfo {
enum merge_mode merge;
xkb_atom_t name;
- unsigned char flags;
unsigned char which_mods;
xkb_mod_mask_t mods;
unsigned char which_groups;
@@ -236,7 +235,6 @@ static void
ClearIndicatorMapInfo(struct xkb_context *ctx, LEDInfo *info)
{
info->name = xkb_atom_intern(ctx, "default");
- info->flags = 0;
info->which_mods = 0;
info->mods = 0;
info->which_groups = info->groups = 0;
@@ -1081,7 +1079,6 @@ CopyIndicatorMapDefs(CompatInfo *info)
}
}
- im->flags = led->flags;
if (led->groups != 0 && led->which_groups == 0)
im->which_groups = XkbIM_UseEffective;
else