types: remove DeleteLevel1MapEntries
authorRan Benita <ran234@gmail.com>
Tue, 7 Aug 2012 05:17:26 +0000 (08:17 +0300)
committerRan Benita <ran234@gmail.com>
Tue, 7 Aug 2012 10:20:37 +0000 (13:20 +0300)
commita681c6240d325d54bd705fa2e91425486f2f557b
treea7a8566a711b869453541be2285202df05cf7f5f
parent233d85c427cbb9ecc53e9bc9784ceb0bd10fb87b
types: remove DeleteLevel1MapEntries

If there is no map entry for some modifier combination, the default is
to use level 1. The removed code is an optimization to save some space
by removing these entries. But it doesn't actually save any space, and
did not in fact remove all level 1 entries (it walks the array while
modifying it so there's an off-by-one error).

We can instead keep them in the types but just not print them in
keymap-dump.c, to get about the same behavior.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap-dump.c
src/xkbcomp/keytypes.c
test/data/keymaps/dump.data