Browse Source

Don't print warnings for non-existing xrdb values

If needed, the Lua code can print a warning instead.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Uli Schlachter 2 years ago
parent
commit
f4e66bd24b
1 changed files with 0 additions and 4 deletions
  1. 0
    4
      xrdb.c

+ 0
- 4
xrdb.c View File

@@ -38,10 +38,6 @@ int luaA_xrdb_get_value(lua_State *L) {
38 38
     char *result = NULL;
39 39
 
40 40
     if (xcb_xrm_resource_get_string(globalconf.xrmdb, resource_name, resource_class, &result) < 0 ) {
41
-        if (strlen(resource_class))
42
-            luaA_warn(L, "Failed to get xrdb value '%s' (class '%s').", resource_name, resource_class);
43
-        else
44
-            luaA_warn(L, "Failed to get xrdb value '%s'.", resource_name);
45 41
         lua_pushnil(L);
46 42
     } else {
47 43
         lua_pushstring(L, result);

Loading…
Cancel
Save