aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/jsonformat.c11
-rw-r--r--src/vppinfra/jsonformat.h2
2 files changed, 0 insertions, 13 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)
{
diff --git a/src/vppinfra/jsonformat.h b/src/vppinfra/jsonformat.h
index d27785f0058..062e4e188ef 100644
--- a/src/vppinfra/jsonformat.h
+++ b/src/vppinfra/jsonformat.h
@@ -83,8 +83,6 @@ unformat_vl_api_timestamp_t (unformat_input_t *input, va_list *args);
CJSON_PUBLIC (uword)
unformat_vl_api_gbp_scope_t (unformat_input_t *input, va_list *args);
-CJSON_PUBLIC (int)
-vl_api_c_string_to_api_string (const char *buf, vl_api_string_t *str);
CJSON_PUBLIC (void)
vl_api_string_cJSON_AddToObject (cJSON *const object, const char *const name,
vl_api_string_t *astr);