From b4845a55fe331e5075bc7baef97cba321010c580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 17 Feb 2019 21:53:01 +0100 Subject: [PATCH] module/i3: remove even more IPC related json error messages --- modules/i3.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/modules/i3.c b/modules/i3.c index 5f0b5d1..d7210e7 100644 --- a/modules/i3.c +++ b/modules/i3.c @@ -152,11 +152,6 @@ workspace_lookup(struct private *m, const char *name) static bool handle_get_version_reply(int type, const struct json_object *json, void *_m) { - if (!json_object_is_type(json, json_type_object)) { - LOG_ERR("'version' reply is not of type 'object'"); - return false; - } - struct json_object *version; if (!json_object_object_get_ex(json, "human_readable", &version)) return false; @@ -168,11 +163,6 @@ handle_get_version_reply(int type, const struct json_object *json, void *_m) static bool handle_subscribe_reply(int type, const struct json_object *json, void *_m) { - if (!json_object_is_type(json, json_type_object)) { - LOG_ERR("'subscribe' reply is not of type 'object'"); - return false; - } - struct json_object *success; if (!json_object_object_get_ex(json, "success", &success)) return false; @@ -191,11 +181,6 @@ handle_get_workspaces_reply(int type, const struct json_object *json, void *_mod struct module *mod = _mod; struct private *m = mod->private; - if (!json_object_is_type(json, json_type_array)) { - LOG_ERR("'workspaces' reply is not of type 'array'"); - return false; - } - mtx_lock(&mod->lock); workspaces_free(m);