[vlc-devel] [PATCH 2/2] vlc_arrays: remove vlc_array_{new, destroy}
Filip Roséen
filip at atch.se
Tue Feb 21 20:10:12 CET 2017
These functions are no longer necessary nor used; future
implementations shall use vlc_array_init and vlc_array_clear
respectively).
---
include/vlc_arrays.h | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index d4c2d6e89e..78b0f544c8 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -296,22 +296,6 @@ static inline void vlc_array_clear( vlc_array_t * p_array )
vlc_array_init( p_array );
}
-static inline vlc_array_t * vlc_array_new( void )
-{
- vlc_array_t * ret = (vlc_array_t *)malloc( sizeof(vlc_array_t) );
- if( ret ) vlc_array_init( ret );
- return ret;
-}
-
-static inline void vlc_array_destroy( vlc_array_t * p_array )
-{
- if( !p_array )
- return;
- free( p_array->pp_elems );
- free( p_array );
-}
-
-
/* Read */
static inline size_t vlc_array_count( vlc_array_t * p_array )
{
--
2.11.1
More information about the vlc-devel
mailing list