From f4e66bd24bc49808c9b9917453fef430ad4718d7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 24 May 2017 10:06:24 +0200 Subject: [PATCH] Don't print warnings for non-existing xrdb values If needed, the Lua code can print a warning instead. Signed-off-by: Uli Schlachter --- xrdb.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xrdb.c b/xrdb.c index cd97d2b2..c4010a48 100644 --- a/xrdb.c +++ b/xrdb.c @@ -38,10 +38,6 @@ int luaA_xrdb_get_value(lua_State *L) { char *result = NULL; if (xcb_xrm_resource_get_string(globalconf.xrmdb, resource_name, resource_class, &result) < 0 ) { - if (strlen(resource_class)) - luaA_warn(L, "Failed to get xrdb value '%s' (class '%s').", resource_name, resource_class); - else - luaA_warn(L, "Failed to get xrdb value '%s'.", resource_name); lua_pushnil(L); } else { lua_pushstring(L, result);