summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/vec.h')
-rw-r--r--src/vppinfra/vec.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/vppinfra/vec.h b/src/vppinfra/vec.h
index e8eb586fca9..3f50bd25625 100644
--- a/src/vppinfra/vec.h
+++ b/src/vppinfra/vec.h
@@ -373,13 +373,11 @@ do { \
*/
#define vec_new_aligned(T,N,A) vec_new_ha(T,N,0,A)
-/** \brief Free vector's memory (general version)
-
+/** \brief Free vector's memory (no header).
@param V pointer to a vector
- @param H size of header in bytes
@return V (value-result parameter, V=0)
*/
-#define vec_free_h(V, H) \
+#define vec_free(V) \
do \
{ \
if (V) \
@@ -390,12 +388,6 @@ do { \
} \
while (0)
-/** \brief Free vector's memory (no header).
- @param V pointer to a vector
- @return V (value-result parameter, V=0)
-*/
-#define vec_free(V) vec_free_h(V,0)
-
void vec_free_not_inline (void *v);
/**\brief Free vector user header (syntactic sugar)