Skip to content

Commit a2b66e0

Browse files
committed
pp_ctl.c: Remove code which is no longer reachable
This block was effectively superseded in abf573d in Nov/Dec 2022. Fixes: GH #23958.
1 parent f3c8c58 commit a2b66e0

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pp_ctl.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,14 +3310,6 @@ PP(pp_goto)
33103310
else if (CxMULTICALL(cx))
33113311
DIE(aTHX_ "Can't goto subroutine from a sort sub (or similar callback)");
33123312

3313-
/* Check for defer { goto &...; } */
3314-
for(ix = cxstack_ix; ix > cxix; ix--) {
3315-
if(CxTYPE(&cxstack[ix]) == CXt_DEFER)
3316-
/* diag_listed_as: Can't "%s" out of a "defer" block */
3317-
croak("Can't \"%s\" out of a \"%s\" block",
3318-
"goto", S_defer_blockname(&cxstack[ix]));
3319-
}
3320-
33213313
/* First do some returnish stuff. */
33223314

33233315
SvREFCNT_inc_simple_void(cv); /* avoid premature free during unwind */

0 commit comments

Comments
 (0)