summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-16 16:17:05 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-16 16:17:05 +0000
commit423b73760d999602951a3f5d94d4897cf8afc306 (patch)
tree2871985513918aa5daab53a449f6198497618967 /gv.c
parent2c8694a778a4cb9e4248cb373d54ec96f4d26baa (diff)
downloadperl-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.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gv.c b/gv.c
index cbe521bb8d..963f0ae326 100644
--- a/gv.c
+++ b/gv.c
@@ -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 */