Skip to content

Commit 270c894

Browse files
committed
feat: remove more of dead code.
1 parent 35f1adb commit 270c894

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

Zend/zend_alloc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,6 @@ static zend_always_inline void *zend_mm_alloc_heap(zend_mm_heap *heap, size_t si
14801480
size = ZEND_MM_ALIGNED_SIZE(size) + ZEND_MM_ALIGNED_SIZE(sizeof(zend_mm_debug_info));
14811481
if (UNEXPECTED(size < real_size)) {
14821482
zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu + %zu)", ZEND_MM_ALIGNED_SIZE(real_size), ZEND_MM_ALIGNED_SIZE(sizeof(zend_mm_debug_info)));
1483-
return NULL;
14841483
}
14851484
#endif
14861485
if (EXPECTED(size <= ZEND_MM_MAX_SMALL_SIZE)) {

Zend/zend_compile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11485,7 +11485,6 @@ static void zend_compile_const_expr_class_name(zend_ast **ast_ptr) /* {{{ */
1148511485
case ZEND_FETCH_CLASS_STATIC:
1148611486
zend_error_noreturn(E_COMPILE_ERROR,
1148711487
"static::class cannot be used for compile-time class name resolution");
11488-
return;
1148911488
EMPTY_SWITCH_DEFAULT_CASE()
1149011489
}
1149111490
}

Zend/zend_execute_API.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,6 @@ static void zend_set_timeout_ex(zend_long seconds, bool reset_signals) /* {{{ */
15651565
if (!DeleteTimerQueueTimer(NULL, tq_timer, INVALID_HANDLE_VALUE)) {
15661566
tq_timer = NULL;
15671567
zend_error_noreturn(E_ERROR, "Could not delete queued timer");
1568-
return;
15691568
}
15701569
tq_timer = NULL;
15711570
}
@@ -1575,7 +1574,6 @@ static void zend_set_timeout_ex(zend_long seconds, bool reset_signals) /* {{{ */
15751574
if (!CreateTimerQueueTimer(&tq_timer, NULL, (WAITORTIMERCALLBACK)tq_timer_cb, (VOID*)eg, seconds*1000, 0, WT_EXECUTEONLYONCE)) {
15761575
tq_timer = NULL;
15771576
zend_error_noreturn(E_ERROR, "Could not queue new timer");
1578-
return;
15791577
}
15801578
#elif defined(ZEND_MAX_EXECUTION_TIMERS)
15811579
if (seconds > 0) {
@@ -1662,7 +1660,6 @@ void zend_unset_timeout(void) /* {{{ */
16621660
zend_atomic_bool_store_ex(&EG(timed_out), false);
16631661
tq_timer = NULL;
16641662
zend_error_noreturn(E_ERROR, "Could not delete queued timer");
1665-
return;
16661663
}
16671664
tq_timer = NULL;
16681665
}

0 commit comments

Comments
 (0)