[PATCH 6/6] util: json: Remove unused virJSONValueObjectAppendStringPrintf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 -
 src/util/virjson.c       | 17 -----------------
 src/util/virjson.h       |  6 ------
 3 files changed, 24 deletions(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index b249dcc85c..8792bf7f54 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2621,7 +2621,6 @@ virJSONValueObjectAppendNumberLong;
 virJSONValueObjectAppendNumberUint;
 virJSONValueObjectAppendNumberUlong;
 virJSONValueObjectAppendString;
-virJSONValueObjectAppendStringPrintf;
 virJSONValueObjectDeflatten;
 virJSONValueObjectForeachKeyValue;
 virJSONValueObjectGet;
diff --git a/src/util/virjson.c b/src/util/virjson.c
index 1c3a50440e..4e822063bc 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -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,
diff --git a/src/util/virjson.h b/src/util/virjson.h
index 0ea7caad23..95b8b14ae6 100644
--- a/src/util/virjson.h
+++ b/src/util/virjson.h
@@ -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);
-- 
2.39.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux