diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-16 16:17:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-16 16:17:05 +0000 |
commit | 423b73760d999602951a3f5d94d4897cf8afc306 (patch) | |
tree | 2871985513918aa5daab53a449f6198497618967 /gv.c | |
parent | 2c8694a778a4cb9e4248cb373d54ec96f4d26baa (diff) | |
download | perl-423b73760d999602951a3f5d94d4897cf8afc306.tar.gz |
Remove the "performance hack" that suppressed used only once warnings
for files in the standard library.
p4raw-id: //depot/perl@30969
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -1390,19 +1390,6 @@ Perl_gv_check(pTHX_ const HV *stash) if (SvTYPE(gv) != SVt_PVGV || GvMULTI(gv)) continue; file = GvFILE(gv); - /* performance hack: if filename is absolute and it's a standard - * module, don't bother warning */ -#ifdef MACOS_TRADITIONAL -# define LIB_COMPONENT ":lib:" -#else -# define LIB_COMPONENT "/lib/" -#endif - if (file - && PERL_FILE_IS_ABSOLUTE(file) - && (instr(file, LIB_COMPONENT) || instr(file, ".pm"))) - { - continue; - } CopLINE_set(PL_curcop, GvLINE(gv)); #ifdef USE_ITHREADS CopFILE(PL_curcop) = (char *)file; /* set for warning */ |