projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a27ac7
)
symbols: remove useless grow_alloc of keys array
author
Ran Benita
<ran234@gmail.com>
Fri, 14 Sep 2012 18:53:27 +0000
(21:53 +0300)
committer
Ran Benita
<ran234@gmail.com>
Fri, 14 Sep 2012 18:53:27 +0000
(21:53 +0300)
This just does a big, mostly too big, allocation to save about a dozen
malloc calls. Remove it.
Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/symbols.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/symbols.c
b/src/xkbcomp/symbols.c
index
6ef5733
..
fce0dd3
100644
(file)
--- a/
src/xkbcomp/symbols.c
+++ b/
src/xkbcomp/symbols.c
@@
-179,7
+179,6
@@
InitSymbolsInfo(SymbolsInfo *info, struct xkb_keymap *keymap,
info->keymap = keymap;
info->file_id = file_id;
info->merge = MERGE_OVERRIDE;
- darray_growalloc(info->keys, 110);
InitKeyInfo(&info->dflt, file_id);
InitVModInfo(&info->vmods, keymap);
info->actions = actions;