From 6f2b7435c34525863b9e459cbc06225201d6ee17 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 18 Jan 2019 17:34:12 +0100 Subject: [PATCH] Remove unused Xlib Display* from luaA_get_modifiers Signed-off-by: Uli Schlachter --- luaa.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/luaa.c b/luaa.c index 4905748e..981c196b 100644 --- a/luaa.c +++ b/luaa.c @@ -66,9 +66,6 @@ #include #include -/* XkbKeycodeToKeysym */ -#include - #include /* for gethostname() */ #ifdef WITH_DBUS @@ -462,11 +459,6 @@ get_modifier_name(int map_index) */ static int luaA_get_modifiers(lua_State *L) { - Display *display = XOpenDisplay(NULL); - - if (!display) - return 0; - xcb_get_modifier_mapping_reply_t *mods = xcb_get_modifier_mapping_reply(globalconf.connection, xcb_get_modifier_mapping(globalconf.connection), NULL); if (!mods) @@ -512,7 +504,6 @@ static int luaA_get_modifiers(lua_State *L) } free(mods); - XCloseDisplay(display); return 0; }