aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/jsonformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/jsonformat.c')
-rw-r--r--src/vppinfra/jsonformat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/vppinfra/jsonformat.c b/src/vppinfra/jsonformat.c
index 17b3ee9d3f8..1aa3864be04 100644
--- a/src/vppinfra/jsonformat.c
+++ b/src/vppinfra/jsonformat.c
@@ -428,17 +428,6 @@ format_ip4_address (u8 * s, va_list * args)
return format (s, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
}
-int
-vl_api_c_string_to_api_string (const char *buf, vl_api_string_t * str)
-{
- /* copy without nul terminator */
- u32 len = strlen (buf);
- if (len > 0)
- clib_memcpy_fast (str->buf, buf, len);
- str->length = htonl (len);
- return len + sizeof (u32);
-}
-
void
vl_api_string_cJSON_AddToObject(cJSON * const object, const char * const name, vl_api_string_t *astr)
{