types: don't compute effective masks here as well
authorRan Benita <ran234@gmail.com>
Wed, 8 Aug 2012 22:30:22 +0000 (01:30 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 8 Aug 2012 22:57:17 +0000 (01:57 +0300)
commit41478b4309a4c69f7b641901849e0379dc23649b
treefd6eb3e2b04e41bbd21debf6799cb364356b87ec
parentfafc1132d25c0ecf8c406c549d9c2dc894031b1d
types: don't compute effective masks here as well

After compiling all of the sections, UpdateModifiersFromCompat does all
of the vmod -> real mods translations, including types/kt_entries.

keytypes.c also has code that does that, but it's unneeded:
- Later sections don't look at their effective masks, so doing it later
  is fine.
- When this code is executed, the vmods -> real mods mapping is empty
  (that is set up later), so VModsToReal has no effect here.
So we can just remove it.

However UpdateModifiersFromCompat didn't update the preserve mask, so do
that.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/compat.c
src/xkbcomp/keytypes.c