1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-11 09:17:52 +03:00

util: json: Remove unused virJSONValueObjectGetStringArray wrapper

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2022-12-01 17:08:44 +01:00
parent dc5b8dbe66
commit 83a8f249c2
3 changed files with 0 additions and 21 deletions

View File

@ -2616,7 +2616,6 @@ virJSONValueObjectGetNumberUint;
virJSONValueObjectGetNumberUlong;
virJSONValueObjectGetObject;
virJSONValueObjectGetString;
virJSONValueObjectGetStringArray;
virJSONValueObjectGetValue;
virJSONValueObjectHasKey;
virJSONValueObjectKeysNumber;

View File

@ -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

View File

@ -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,