diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-04-13 08:43:30 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-04-13 08:43:30 +0100 |
commit | d32faaf3b401b4c02872bfb2f57e48e11b3a1d28 (patch) | |
tree | 0b9f5c0f005c2be5689c9c7fc00fcd345cc426af /op.c | |
parent | 009f650f63e8acd928fc3a7bd09802d4edaadad9 (diff) | |
download | perl-d32faaf3b401b4c02872bfb2f57e48e11b3a1d28.tar.gz |
GvUNIQUE* have been defined as 0 since 2005/06/30 - high time to remove them.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -5588,12 +5588,6 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) cv = (!name || GvCVGEN(gv)) ? NULL : GvCV(gv); -#ifdef GV_UNIQUE_CHECK - if (cv && GvUNIQUE(gv) && SvREADONLY(cv)) { - Perl_croak(aTHX_ "Can't define subroutine %s (GV is unique)", name); - } -#endif - if (!block || !ps || *ps || attrs || (CvFLAGS(PL_compcv) & CVf_BUILTIN_ATTRS) #ifdef PERL_MAD @@ -5607,12 +5601,6 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) if (cv) { const bool exists = CvROOT(cv) || CvXSUB(cv); -#ifdef GV_UNIQUE_CHECK - if (exists && GvUNIQUE(gv)) { - Perl_croak(aTHX_ "Can't redefine unique subroutine %s", name); - } -#endif - /* if the subroutine doesn't exist and wasn't pre-declared * with a prototype, assume it will be AUTOLOADed, * skipping the prototype check @@ -6155,11 +6143,6 @@ Perl_newFORM(pTHX_ I32 floor, OP *o, OP *block) ? gv_fetchsv(cSVOPo->op_sv, GV_ADD, SVt_PVFM) : gv_fetchpvs("STDOUT", GV_ADD|GV_NOTQUAL, SVt_PVFM); -#ifdef GV_UNIQUE_CHECK - if (GvUNIQUE(gv)) { - Perl_croak(aTHX_ "Bad symbol for form (GV is unique)"); - } -#endif GvMULTI_on(gv); if ((cv = GvFORM(gv))) { if (ckWARN(WARN_REDEFINE)) { |