Skip to content

Commit f46e4a8

Browse files
committed
remove unused function
1 parent b8468f7 commit f46e4a8

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Zend/zend_execute.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,31 +1177,6 @@ static zend_always_inline zend_class_entry *zend_fetch_ce_from_cache_slot(
11771177
return ce;
11781178
}
11791179

1180-
static bool zend_check_intersection_type_from_cache_slot(zend_type_list *intersection_type_list,
1181-
zend_class_entry *arg_ce, void ***cache_slot_ptr)
1182-
{
1183-
void **cache_slot = *cache_slot_ptr;
1184-
zend_class_entry *ce;
1185-
zend_type *list_type;
1186-
bool status = true;
1187-
ZEND_TYPE_LIST_FOREACH(intersection_type_list, list_type) {
1188-
/* Only check classes if the type might be valid */
1189-
if (status) {
1190-
ce = zend_fetch_ce_from_cache_slot(cache_slot, list_type);
1191-
/* If type is not an instance of one of the types taking part in the
1192-
* intersection it cannot be a valid instance of the whole intersection type. */
1193-
if (!ce || !instanceof_function(arg_ce, ce)) {
1194-
status = false;
1195-
}
1196-
}
1197-
PROGRESS_CACHE_SLOT();
1198-
} ZEND_TYPE_LIST_FOREACH_END();
1199-
if (HAVE_CACHE_SLOT) {
1200-
*cache_slot_ptr = cache_slot;
1201-
}
1202-
return status;
1203-
}
1204-
12051180
static int zend_type_node_matches(const zend_type_node *node, zval *zv)
12061181
{
12071182
switch (node->kind) {

0 commit comments

Comments
 (0)