vlc_arrays: remove vlc_array_{new, destroy}

These functions are no longer necessary nor used; future
implementations shall use vlc_array_init and vlc_array_clear
respectively).

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
This commit is contained in:
Filip Roséen 2017-02-21 20:10:12 +01:00 committed by Rémi Denis-Courmont
parent f063bb3070
commit 209ee554c4
1 changed files with 0 additions and 16 deletions

View File

@ -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 )
{