]> git.sesse.net Git - vlc/blobdiff - include/vlc_common.h
Remove unused macros (or used only one time).
[vlc] / include / vlc_common.h
index 649553b48ff3f050bbf7ff6671694a65676ac752..27d594d4655f5ea7a52f5bb8a97634db424e54ad 100644 (file)
@@ -610,14 +610,6 @@ static inline uint8_t clip_uint8_vlc( int32_t a )
                                    if( !var ) return NULL; } while(0)
 #define MALLOC_ERR( var, type ) do { var = (type*)malloc( sizeof( type) ); \
                                    if( !var ) return VLC_ENOMEM; } while(0)
-#define MALLOC_GOTOERR( var, type ) do { var = (type*)malloc( sizeof( type) ); \
-                                      if( !var ) goto error; } while(0)
-#define DECMALLOC_VOID( var, type ) type* var = (type*)malloc( sizeof(type) );\
-                                    if( !var ) return;
-#define DECMALLOC_ERR( var, type )  type* var = (type*)malloc( sizeof(type) );\
-                                    if( !var ) return VLC_ENOMEM;
-#define DECMALLOC_NULL( var, type ) type* var = (type*)malloc( sizeof(type) );\
-                                    if( !var ) return NULL;
 
 #define FREENULL(a) do { free( a ); a = NULL; } while(0)