util: json: Remove unused virJSONValueObjectAppendStringPrintf

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2023-03-06 10:09:19 +01:00
parent 4afac135fd
commit 3922de0ce2
3 changed files with 0 additions and 24 deletions

View File

@ -2621,7 +2621,6 @@ virJSONValueObjectAppendNumberLong;
virJSONValueObjectAppendNumberUint;
virJSONValueObjectAppendNumberUlong;
virJSONValueObjectAppendString;
virJSONValueObjectAppendStringPrintf;
virJSONValueObjectDeflatten;
virJSONValueObjectForeachKeyValue;
virJSONValueObjectGet;

View File

@ -609,23 +609,6 @@ virJSONValueObjectAppendString(virJSONValue *object,
}
int
virJSONValueObjectAppendStringPrintf(virJSONValue *object,
const char *key,
const char *fmt,
...)
{
va_list ap;
g_autofree char *str = NULL;
va_start(ap, fmt);
str = g_strdup_vprintf(fmt, ap);
va_end(ap);
return virJSONValueObjectInsertString(object, key, str, false);
}
int
virJSONValueObjectPrependString(virJSONValue *object,
const char *key,

View File

@ -204,12 +204,6 @@ virJSONValueObjectAppendString(virJSONValue *object,
const char *key,
const char *value);
int
virJSONValueObjectAppendStringPrintf(virJSONValue *object,
const char *key,
const char *fmt,
...)
G_GNUC_PRINTF(3, 4);
int
virJSONValueObjectPrependString(virJSONValue *object,
const char *key,
const char *value);