]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: json: Remove unused virJSONValueObjectAppendStringPrintf
authorPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 09:09:19 +0000 (10:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 12:36:57 +0000 (13:36 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virjson.c
src/util/virjson.h

index b249dcc85c8e98cbbb5d08a7e690c46b028bf8ee..8792bf7f5486db9ec2584ab759f8af9f3af1cbe9 100644 (file)
@@ -2621,7 +2621,6 @@ virJSONValueObjectAppendNumberLong;
 virJSONValueObjectAppendNumberUint;
 virJSONValueObjectAppendNumberUlong;
 virJSONValueObjectAppendString;
-virJSONValueObjectAppendStringPrintf;
 virJSONValueObjectDeflatten;
 virJSONValueObjectForeachKeyValue;
 virJSONValueObjectGet;
index 1c3a50440e68fddde6f29f1807289d89fd684511..4e822063bccba7aa64c741137d9b89098eca46c5 100644 (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,
index 0ea7caad231ef2af03bd575073fedc39c90f7c84..95b8b14ae6bb8cd1ab92c2e1446ac389369fb381 100644 (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);