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 b03596ad4d..248124e4ba 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2067,7 +2067,6 @@ virJSONValueNewNumberUint;
virJSONValueNewNumberUlong;
virJSONValueNewObject;
virJSONValueNewString;
-virJSONValueNewStringLen;
virJSONValueObjectAdd;
virJSONValueObjectAddVArgs;
virJSONValueObjectAppend;
diff --git a/src/util/virjson.c b/src/util/virjson.c
index ab3c63146d..0c3bc38b5c 100644
--- a/src/util/virjson.c
+++ b/src/util/virjson.c
@@ -421,28 +421,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 e4a82bdbc8..74e975f1a4 100644
--- a/src/util/virjson.h
+++ b/src/util/virjson.h
@@ -58,7 +58,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