[PATCH 16/18] util: json: Remove virJSONValueObjectCreate(VArgs)

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

 



The functions were obsoleted by virJSONValueObjectAdd(VArgs)

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

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 9ee8fda25f..a7bc50a4d1 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2561,8 +2561,6 @@ virJSONValueObjectAppendNumberUint;
 virJSONValueObjectAppendNumberUlong;
 virJSONValueObjectAppendString;
 virJSONValueObjectAppendStringPrintf;
-virJSONValueObjectCreate;
-virJSONValueObjectCreateVArgs;
 virJSONValueObjectDeflatten;
 virJSONValueObjectForeachKeyValue;
 virJSONValueObjectGet;
diff --git a/src/util/virjson.c b/src/util/virjson.c
index 8b3599e94f..dbc5b7840c 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -369,30 +369,6 @@ virJSONValueObjectAdd(virJSONValue **objptr, ...)
 }


-int
-virJSONValueObjectCreateVArgs(virJSONValue **obj,
-                              va_list args)
-{
-    *obj = NULL;
-
-    return virJSONValueObjectAddVArgs(obj, args);
-}
-
-
-int
-virJSONValueObjectCreate(virJSONValue **obj, ...)
-{
-    va_list args;
-    int ret;
-
-    va_start(args, obj);
-    ret = virJSONValueObjectCreateVArgs(obj, args);
-    va_end(args);
-
-    return ret;
-}
-
-
 void
 virJSONValueFree(virJSONValue *value)
 {
diff --git a/src/util/virjson.h b/src/util/virjson.h
index 0d8dad754d..361b0190e8 100644
--- a/src/util/virjson.h
+++ b/src/util/virjson.h
@@ -44,10 +44,6 @@ void virJSONValueHashFree(void *opaque);

 virJSONType virJSONValueGetType(const virJSONValue *value);

-int virJSONValueObjectCreate(virJSONValue **obj, ...)
-    ATTRIBUTE_NONNULL(1) G_GNUC_NULL_TERMINATED;
-int virJSONValueObjectCreateVArgs(virJSONValue **obj, va_list args)
-    ATTRIBUTE_NONNULL(1);
 int virJSONValueObjectAdd(virJSONValue **obj, ...)
     ATTRIBUTE_NONNULL(1) G_GNUC_NULL_TERMINATED;
 int virJSONValueObjectAddVArgs(virJSONValue **objptr, va_list args)
-- 
2.31.1




[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