]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: Remove virJSONValueIsNull/virJSONValueObjectIsNull
authorPeter Krempa <pkrempa@redhat.com>
Mon, 20 Dec 2021 14:17:40 +0000 (15:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Dec 2021 12:48:35 +0000 (13:48 +0100)
commit591bb51d373b11617cee860b4e323c58f92052a1
tree9becb8a97a9e7c399e0eb922c2002f7874651b79
parent36d6c3bb67eb9e08769dc8164397b31cae355b08
util: json: Remove virJSONValueIsNull/virJSONValueObjectIsNull

If needed 'virJSONValueIsNull' can be easily replaced by
'virJSONValueGetType(obj) == VIR_JSON_TYPE_NULL'.

'virJSONValueObjectIsNull' has confusing name because it checks that a
virJSONValue of OBJECT type has a key which is NULL, not that the object
itself is NULL. This can be replaced according to the needs e.g. by
virJSONValueObjectHasKey or the above check.

Both are unused.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/libvirt_private.syms
src/util/virjson.c
src/util/virjson.h