From 402f697068ee10155497d28a32d3e8e955f5fec2 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 24 May 2015 21:56:49 +0200 Subject: [PATCH] Remove zend_init_list No longer used - zend_add_to_list already covers this. Also marked zend_add_to_list as static and dropped it from the header. --- Zend/zend_compile.c | 13 +------------ Zend/zend_compile.h | 4 ---- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 02805759a4..d1b57c413f 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1455,18 +1455,7 @@ static zend_bool zend_try_ct_eval_class_const(zval *zv, zend_string *class_name, } /* }}} */ -void zend_init_list(void *result, void *item) /* {{{ */ -{ - void** list = emalloc(sizeof(void*) * 2); - - list[0] = item; - list[1] = NULL; - - *(void**)result = list; -} -/* }}} */ - -void zend_add_to_list(void *result, void *item) /* {{{ */ +static void zend_add_to_list(void *result, void *item) /* {{{ */ { void** list = *(void**)result; size_t n = 0; diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 3f9098c314..d258289a13 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -701,10 +701,6 @@ ZEND_API zend_class_entry *do_bind_class(const zend_op_array *op_array, const ze ZEND_API zend_class_entry *do_bind_inherited_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time); ZEND_API void zend_do_delayed_early_binding(const zend_op_array *op_array); -/* Functions for a null terminated pointer list, used for traits parsing and compilation */ -void zend_init_list(void *result, void *item); -void zend_add_to_list(void *result, void *item); - void zend_do_extended_info(void); void zend_do_extended_fcall_begin(void); void zend_do_extended_fcall_end(void); -- 2.50.1