From: Andi Gutmans Date: Sun, 14 Jul 2002 18:17:07 +0000 (+0000) Subject: - Nuke some unused code X-Git-Tag: dev~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35e8d8139e910dac7f40494087d280c79b3f9900;p=php - Nuke some unused code --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index f2f70e375f..9559905d9f 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -123,35 +123,6 @@ static inline zval *_get_zval_ptr(znode *node, temp_variable *Ts, int *should_fr return NULL; } -static inline zval *_get_object_zval_ptr(znode *node, temp_variable *Ts, int *should_free TSRMLS_DC) -{ - switch(node->op_type) { - case IS_TMP_VAR: - *should_free = 1; - return &Ts[node->u.var].tmp_var; - break; - case IS_VAR: - if (Ts[node->u.var].var.ptr_ptr) { - PZVAL_UNLOCK(*Ts[node->u.var].var.ptr_ptr); - *should_free = 0; - return *Ts[node->u.var].var.ptr_ptr; - } else { - if (Ts[node->u.var].EA.type==IS_STRING_OFFSET) { - PZVAL_UNLOCK(Ts[node->u.var].EA.data.str_offset.str); - } - *should_free = 1; - return NULL; - } - break; - case IS_UNUSED: - return NULL; - break; - EMPTY_SWITCH_DEFAULT_CASE() - } - return NULL; -} - - static inline zval **_get_zval_ptr_ptr(znode *node, temp_variable *Ts TSRMLS_DC) { if (node->op_type==IS_VAR) {