[vlc-commits] vlc_arrays: remove vlc_array_{new, destroy}
Filip Roséen
git at videolan.org
Tue Feb 21 20:29:17 CET 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Feb 21 20:10:12 2017 +0100| [209ee554c45bc5c6ad732e3bd30584c9b02223bf] | committer: Rémi Denis-Courmont
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 at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=209ee554c45bc5c6ad732e3bd30584c9b02223bf
---
include/vlc_arrays.h | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index d4c2d6e..78b0f54 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 )
{
More information about the vlc-commits
mailing list