Skip to content

Commit 781ca23

Browse files
committed
Some cleanup
1 parent 2875a23 commit 781ca23

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

Zend/zend_ast.c

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,9 +2116,6 @@ ZEND_API ZEND_COLD zend_string *zend_ast_export(const char *prefix, zend_ast *as
21162116
return str.s;
21172117
}
21182118

2119-
ZEND_API zend_class_entry *zend_ast_node_ce = NULL;
2120-
ZEND_API zend_class_entry *zend_ast_decl_ce = NULL;
2121-
21222119
ZEND_API void zend_ast_convert_to_object(zval *p, zend_ast *ast, zend_class_entry *ce)
21232120
{
21242121
if (ast->kind == ZEND_AST_CONSTANT) {
@@ -2161,42 +2158,6 @@ ZEND_API zval *zend_ast_convert_attributes(HashTable *attributes, zend_class_ent
21612158
}
21622159
} ZEND_HASH_FOREACH_END();
21632160

2164-
/* if (convert_ast) {
2165-
ZEND_HASH_FOREACH_STR_KEY_VAL(attributes, key, val) {
2166-
if (Z_TYPE_P(val) == IS_CONSTANT_AST) {
2167-
zend_ast_convert_to_object(&tmp, Z_ASTVAL_P(val), ce);
2168-
zend_hash_add_new(res_ht, key, &tmp);
2169-
} else if (Z_TYPE_P(val) == IS_ARRAY) {
2170-
ht = Z_ARR_P(val);
2171-
array_init_size(&tmp, zend_hash_num_elements(ht));
2172-
val = zend_hash_add_new(res_ht, key, &tmp);
2173-
ht2 = Z_ARR_P(val);
2174-
ZEND_HASH_FOREACH_VAL(ht, val) {
2175-
if (Z_TYPE_P(val) == IS_CONSTANT_AST) {
2176-
zend_ast_convert_to_object(&tmp, Z_ASTVAL_P(val), ce);
2177-
zend_hash_next_index_insert_new(ht2, &tmp);
2178-
} else {
2179-
if (Z_REFCOUNTED_P(val)) {
2180-
Z_ADDREF_P(val);
2181-
}
2182-
zend_hash_next_index_insert_new(ht2, val);
2183-
}
2184-
} ZEND_HASH_FOREACH_END();
2185-
} else {
2186-
if (Z_REFCOUNTED_P(val)) {
2187-
Z_ADDREF_P(val);
2188-
}
2189-
zend_hash_add_new(res_ht, key, val);
2190-
}
2191-
} ZEND_HASH_FOREACH_END();
2192-
} else if (GC_FLAGS(attributes) & IS_ARRAY_IMMUTABLE) {
2193-
ZVAL_IMMUTABLE_ARR(ret, attributes);
2194-
} else {
2195-
GC_ADDREF(attributes);
2196-
ZVAL_ARR(ret, attributes);
2197-
}
2198-
*/
2199-
22002161
return res;
22012162
}
22022163

0 commit comments

Comments
 (0)