]> granicus.if.org Git - php/commitdiff
Drop dead assignments
authorNikita Popov <nikic@php.net>
Sat, 13 Sep 2014 20:21:35 +0000 (22:21 +0200)
committerNikita Popov <nikic@php.net>
Sat, 13 Sep 2014 20:31:21 +0000 (22:31 +0200)
Zend/zend_API.c
Zend/zend_compile.c

index 05d49b8f591667be06de3a2c9664fb53e309182b..fdbefde86b04e9e8ab3b28e812b97c65f82dcba6 100644 (file)
@@ -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) {
index a3942b98ee76eda4410a3a685a9b164b819aa921..f489d59dad66b5c812628d5c8c96e71c798a0d46 100644 (file)
@@ -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);