diff options
author | Nikita Popov <nikic@php.net> | 2015-05-24 21:56:49 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-29 11:07:51 +0200 |
commit | 402f697068ee10155497d28a32d3e8e955f5fec2 (patch) | |
tree | db8e6646f1627e0d351c1f5e64c0093584f0b75b | |
parent | 21a29b4be3c49d89338cbe424ee4f86830596d8b (diff) | |
download | php-git-402f697068ee10155497d28a32d3e8e955f5fec2.tar.gz |
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.
-rw-r--r-- | Zend/zend_compile.c | 13 | ||||
-rw-r--r-- | Zend/zend_compile.h | 4 |
2 files changed, 1 insertions, 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); |