From 22a8e57a57fcf41d295fbd8716e89dbdae423a32 Mon Sep 17 00:00:00 2001 From: ridiculousfish <corydoras@ridiculousfish.com> Date: Mon, 26 Dec 2011 23:29:57 -0800 Subject: [PATCH] More migration away from al_list --- env_universal_common.h | 1 - util.cpp | 15 --------------- util.h | 6 ------ 3 files changed, 22 deletions(-) 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_t *> 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. */