Skip to content

Commit 9b0643e

Browse files
authored
spl: Remove unused fields from spl dllist (#20886)
1 parent 1ee38a3 commit 9b0643e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

ext/spl/spl_dllist.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,7 @@ struct _spl_dllist_object {
7575
spl_ptr_llist_element *traverse_pointer;
7676
int traverse_position;
7777
int flags;
78-
zend_function *fptr_offset_get;
79-
zend_function *fptr_offset_set;
80-
zend_function *fptr_offset_has;
81-
zend_function *fptr_offset_del;
8278
zend_function *fptr_count;
83-
zend_class_entry *ce_get_iterator;
8479
zend_object std;
8580
};
8681

@@ -322,7 +317,6 @@ static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zend_
322317

323318
if (orig) {
324319
spl_dllist_object *other = spl_dllist_from_obj(orig);
325-
intern->ce_get_iterator = other->ce_get_iterator;
326320

327321
if (clone_orig) {
328322
intern->llist = spl_ptr_llist_init();
@@ -360,22 +354,6 @@ static zend_object *spl_dllist_object_new_ex(zend_class_entry *class_type, zend_
360354
ZEND_ASSERT(parent);
361355

362356
if (inherited) {
363-
intern->fptr_offset_get = zend_hash_str_find_ptr(&class_type->function_table, "offsetget", sizeof("offsetget") - 1);
364-
if (intern->fptr_offset_get->common.scope == parent) {
365-
intern->fptr_offset_get = NULL;
366-
}
367-
intern->fptr_offset_set = zend_hash_str_find_ptr(&class_type->function_table, "offsetset", sizeof("offsetset") - 1);
368-
if (intern->fptr_offset_set->common.scope == parent) {
369-
intern->fptr_offset_set = NULL;
370-
}
371-
intern->fptr_offset_has = zend_hash_str_find_ptr(&class_type->function_table, "offsetexists", sizeof("offsetexists") - 1);
372-
if (intern->fptr_offset_has->common.scope == parent) {
373-
intern->fptr_offset_has = NULL;
374-
}
375-
intern->fptr_offset_del = zend_hash_str_find_ptr(&class_type->function_table, "offsetunset", sizeof("offsetunset") - 1);
376-
if (intern->fptr_offset_del->common.scope == parent) {
377-
intern->fptr_offset_del = NULL;
378-
}
379357
/* Find count() method */
380358
intern->fptr_count = zend_hash_find_ptr(&class_type->function_table, ZSTR_KNOWN(ZEND_STR_COUNT));
381359
if (intern->fptr_count->common.scope == parent) {

0 commit comments

Comments
 (0)