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:
parent
dc5b8dbe66
commit
83a8f249c2
@ -2616,7 +2616,6 @@ virJSONValueObjectGetNumberUint;
|
||||
virJSONValueObjectGetNumberUlong;
|
||||
virJSONValueObjectGetObject;
|
||||
virJSONValueObjectGetString;
|
||||
virJSONValueObjectGetStringArray;
|
||||
virJSONValueObjectGetValue;
|
||||
virJSONValueObjectHasKey;
|
||||
virJSONValueObjectKeysNumber;
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user