From 47d8c9025bb4f0ae1f44595db3bec736cd03dfea Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Mon, 24 Nov 2025 18:24:32 -0500 Subject: [PATCH] pp_ctl.c: Remove code which is no longer reachable This block was effectively superseded in abf573d165 in Nov/Dec 2022. Fixes: GH #23958. --- pp_ctl.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pp_ctl.c b/pp_ctl.c index 1197c5490b96..a46fb7edbf56 100644 --- a/pp_ctl.c +++ b/pp_ctl.c @@ -3310,14 +3310,6 @@ PP(pp_goto) else if (CxMULTICALL(cx)) DIE(aTHX_ "Can't goto subroutine from a sort sub (or similar callback)"); - /* Check for defer { goto &...; } */ - for(ix = cxstack_ix; ix > cxix; ix--) { - if(CxTYPE(&cxstack[ix]) == CXt_DEFER) - /* diag_listed_as: Can't "%s" out of a "defer" block */ - croak("Can't \"%s\" out of a \"%s\" block", - "goto", S_defer_blockname(&cxstack[ix])); - } - /* First do some returnish stuff. */ SvREFCNT_inc_simple_void(cv); /* avoid premature free during unwind */