It is no longer used.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/libvirt_private.syms | 1 -
src/util/virjson.c | 22 ----------------------
src/util/virjson.h | 1 -
3 files changed, 24 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 1caecb96b6..c27c224e93 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2096,7 +2096,6 @@ virJSONValueNewNumberUint;
virJSONValueNewNumberUlong;
virJSONValueNewObject;
virJSONValueNewString;
-virJSONValueNewStringLen;
virJSONValueObjectAdd;
virJSONValueObjectAddVArgs;
virJSONValueObjectAppend;
diff --git a/src/util/virjson.c b/src/util/virjson.c
index 80274bc6c5..01a387b2f7 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -420,28 +420,6 @@ virJSONValueNewString(const char *data)
}
-virJSONValuePtr
-virJSONValueNewStringLen(const char *data,
- size_t length)
-{
- virJSONValuePtr val;
-
- if (!data)
- return virJSONValueNewNull();
-
- if (VIR_ALLOC(val) < 0)
- return NULL;
-
- val->type = VIR_JSON_TYPE_STRING;
- if (VIR_STRNDUP(val->data.string, data, length) < 0) {
- VIR_FREE(val);
- return NULL;
- }
-
- return val;
-}
-
-
static virJSONValuePtr
virJSONValueNewNumber(const char *data)
{
diff --git a/src/util/virjson.h b/src/util/virjson.h
index 75f7f17b44..0d5a7ef753 100644
--- a/src/util/virjson.h
+++ b/src/util/virjson.h
@@ -59,7 +59,6 @@ int virJSONValueObjectAddVArgs(virJSONValuePtr obj, va_list args)
virJSONValuePtr virJSONValueNewString(const char *data);
-virJSONValuePtr virJSONValueNewStringLen(const char *data, size_t length);
virJSONValuePtr virJSONValueNewNumberInt(int data);
virJSONValuePtr virJSONValueNewNumberUint(unsigned int data);
virJSONValuePtr virJSONValueNewNumberLong(long long data);
--
2.16.1