Move ComputeEffectiveMap code and avoid some duplication
authorRan Benita <ran234@gmail.com>
Fri, 13 Jul 2012 14:31:30 +0000 (17:31 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 13 Jul 2012 16:07:03 +0000 (19:07 +0300)
commit3e65531f1323278913fb84173e9881db0b28673c
tree154d4c58460f66a5a0d19c9979cf48b50e35fe96
parenta3378338bde48bbe52ffba64bcd32131aa730357
Move ComputeEffectiveMap code and avoid some duplication

The ComputeEffectiveMap function is only called from keytypes.c, with
the last argument NULL, so we can move it there and remove some code.
The function XkbcVirtualModsToRealMods, of which the above is the only
user, is already implemented more simply in compat.c, so make this one
non-static and use it. This leaves src/xkb.c empty, so remove it.

Signed-off-by: Ran Benita <ran234@gmail.com>
Makefile.am
src/xkb-priv.h
src/xkb.c [deleted file]
src/xkbcomp/compat.c
src/xkbcomp/keytypes.c
src/xkbcomp/xkbcomp-priv.h