aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/device/format.c2
-rw-r--r--src/vppinfra/std-formats.c2
-rw-r--r--src/vppinfra/vec.h12
3 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c
index db9060217ac..b06c4cef344 100644
--- a/src/plugins/dpdk/device/format.c
+++ b/src/plugins/dpdk/device/format.c
@@ -238,8 +238,6 @@ format_offload (u8 * s, va_list * va)
uword i, l;
l = ~0;
- if (clib_mem_is_vec (id))
- l = vec_len (id);
if (id)
for (i = 0; id[i] != 0 && i < l; i++)
diff --git a/src/vppinfra/std-formats.c b/src/vppinfra/std-formats.c
index 99ea0c1a713..f7632e16a0b 100644
--- a/src/vppinfra/std-formats.c
+++ b/src/vppinfra/std-formats.c
@@ -396,8 +396,6 @@ format_c_identifier (u8 * s, va_list * va)
uword i, l;
l = ~0;
- if (clib_mem_is_vec (id))
- l = vec_len (id);
if (id)
for (i = 0; i < l && id[i] != 0; i++)
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h
index 1e2f614d910..8f42149021a 100644
--- a/src/vppinfra/vec.h
+++ b/src/vppinfra/vec.h
@@ -187,18 +187,6 @@ _vec_resize_will_expand (void *v, uword n_elts, uword elt_size)
#define vec_resize_will_expand(V, N) \
_vec_resize_will_expand (V, N, sizeof ((V)[0]))
-/** \brief Predicate function, says whether the supplied vector is a clib heap
- object
-
- @param v pointer to a vector
- @return 0 or 1
-*/
-always_inline uword
-clib_mem_is_vec (void *v)
-{
- return clib_mem_is_heap_object (vec_header (v));
-}
-
/* Local variable naming macro (prevents collisions with other macro naming). */
#define _v(var) _vec_##var