Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/libvirt_private.syms | 1 - src/util/virjson.c | 17 ----------------- src/util/virjson.h | 3 --- 3 files changed, 21 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index a5bb44a9f8..9389778db7 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2616,7 +2616,6 @@ virJSONValueObjectGetNumberUint; virJSONValueObjectGetNumberUlong; virJSONValueObjectGetObject; virJSONValueObjectGetString; -virJSONValueObjectGetStringArray; virJSONValueObjectGetValue; virJSONValueObjectHasKey; virJSONValueObjectKeysNumber; diff --git a/src/util/virjson.c b/src/util/virjson.c index 5701c09bfd..1c3a50440e 100644 --- a/src/util/virjson.c +++ b/src/util/virjson.c @@ -1313,23 +1313,6 @@ virJSONValueObjectStealObject(virJSONValue *object, } -char ** -virJSONValueObjectGetStringArray(virJSONValue *object, const char *key) -{ - virJSONValue *data; - - data = virJSONValueObjectGetArray(object, key); - if (!data) { - virReportError(VIR_ERR_INTERNAL_ERROR, - _("%s is missing or not an array"), - key); - return NULL; - } - - return virJSONValueArrayToStringList(data); -} - - /** * virJSONValueArrayToStringList: * @data: a JSON array containing strings to convert diff --git a/src/util/virjson.h b/src/util/virjson.h index 49a89e0910..0ea7caad23 100644 --- a/src/util/virjson.h +++ b/src/util/virjson.h @@ -170,9 +170,6 @@ const char * virJSONValueObjectGetString(virJSONValue *object, const char *key); char ** -virJSONValueObjectGetStringArray(virJSONValue *object, - const char *key); -char ** virJSONValueArrayToStringList(virJSONValue *data); const char * virJSONValueObjectGetStringOrNumber(virJSONValue *object, -- 2.38.1