It was already #if 0’d out. This optimisation, copied from package
subs, only makes sense when there is autoloading, which lexical subs
don’t do. Hence, lexical stubs will be rare indeed, so having an
optimisation for those just creates more nooks to hide bugs.
if (SvTYPE(*spot) != SVt_PVCV) { /* Maybe prototype now, and had at
maximum a prototype before. */
-#if 0
- if (SvTYPE(*spot) > SVt_NULL) {
- cv_ckproto_len_flags(*spot, NULL, ps, ps_len, ps_utf8);
- }
- if (!block && !attrs && !(CvFLAGS(PL_compcv) & CVf_BUILTIN_ATTRS)
- && !PL_madskills) {
- if (ps) {
- sv_setpvn(*svspot, ps, ps_len);
- if ( ps_utf8 ) SvUTF8_on(*svspot);
- }
- else
- sv_setiv(*svspot, -1);
-
- SvREFCNT_dec(compcv);
- cv = compcv = NULL;
- goto done;
- }
-#endif
SvREFCNT_dec(*spot);
*spot = NULL;
}