com php-src: Drop dead assignments: Zend/zend_API.c Zend/ zend_compile.c
| From: | Nikita Popov | Date: | Sat, 13 Sep 2014 20:31:21 +0000 |
| Subject: | com php-src: Drop dead assignments: Zend/zend_API.c Zend/ zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81544@lists.php.net to get a copy of this message | ||
Commit: 88e07324d92f8879eb3927a251e81f72fcdd985b
Author: Nikita Popov <nikic@php.net> Sat, 13 Sep 2014 22:21:35 +0200
Parents: 21a5253ea98a20239457e3c4f785431d14d64de6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=88e07324d92f8879eb3927a251e81f72fcdd985b
Log:
Drop dead assignments
Changed paths:
M Zend/zend_API.c
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 05d49b8..fdbefde 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1303,7 +1303,7 @@ ZEND_API void object_properties_load(zend_object *object, HashTable
*properties
zval_add_ref(&object->properties_table[property_info->offset]);
if (object->properties) {
ZVAL_INDIRECT(&tmp, &object->properties_table[property_info->offset]);
- prop = zend_hash_update(object->properties, key, &tmp);
+ zend_hash_update(object->properties, key, &tmp);
}
} else {
if (!object->properties) {
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index a3942b9..f489d59 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1937,7 +1937,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name,
zend_s
ALLOC_HASHTABLE(*overriden);
zend_hash_init_ex(*overriden, 8, NULL, ptr_dtor, 0, 0);
}
- fn = zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function));
+ zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function));
return;
} else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
/* Make sure the trait method is compatible with previosly declared abstract method */
@@ -4551,7 +4551,7 @@ void zend_compile_new(znode *result, zend_ast *ast TSRMLS_DC) /* {{{ */
zend_compile_class_ref(&class_node, class_ast TSRMLS_CC);
opnum = get_next_op_number(CG(active_op_array));
- opline = zend_emit_op(result, ZEND_NEW, &class_node, NULL TSRMLS_CC);
+ zend_emit_op(result, ZEND_NEW, &class_node, NULL TSRMLS_CC);
zend_compile_call_common(&ctor_result, args_ast, NULL TSRMLS_CC);
zend_do_free(&ctor_result TSRMLS_CC);