Remove xkb_context initialization code from load_compose_table

xkb_context is guaranteed to be initializated from load_keymap.
pull/6/head
Daniel Otero 2015-02-12 11:12:38 +01:00
parent ef3ef30400
commit 562e824246
1 changed files with 0 additions and 7 deletions

View File

@ -145,13 +145,6 @@ static bool load_keymap(void) {
*
*/
static bool load_compose_table(const char *locale) {
if (xkb_context == NULL) {
if ((xkb_context = xkb_context_new(0)) == NULL) {
fprintf(stderr, "[i3lock] could not create xkbcommon context\n");
return false;
}
}
xkb_compose_table_unref(xkb_compose_table);
if ((xkb_compose_table = xkb_compose_table_new_from_locale(xkb_context, locale, 0)) == NULL) {