diff --git a/env_universal_common.h b/env_universal_common.h index f69290475..808c6d00e 100644 --- a/env_universal_common.h +++ b/env_universal_common.h @@ -70,7 +70,6 @@ typedef struct } message_t; - typedef std::queue message_queue_t; /** diff --git a/util.cpp b/util.cpp index 0fc19164c..9ebf60270 100644 --- a/util.cpp +++ b/util.cpp @@ -582,21 +582,6 @@ int hash_ptr_cmp( void *a, return a == b; } -array_list_t *al_new() -{ - array_list_t *res = (array_list_t *)malloc( sizeof( array_list_t ) ); - - if( !res ) - { - oom_handler( 0 ); - return 0; - } - - al_init( res ); - return res; -} - - void al_init( array_list_t *l ) { memset( l, 0, sizeof( array_list_t ) ); diff --git a/util.h b/util.h index 47d8bc4ff..e6dc82b10 100644 --- a/util.h +++ b/util.h @@ -315,12 +315,6 @@ int hash_ptr_cmp( void *a, void *b ); -/** - Allocate heap memory for creating a new list and initialize - it. Equivalent to calling malloc and al_init. -*/ -array_list_t *al_new(); - /** Initialize the list. */