summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-04-28 00:18:30 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-12-09 18:47:20 -0800
commitc58b680b06b94939ee921d7062cd14927136ae30 (patch)
treee8012ebb94b4e9a7bee7bfebc5f073744237b7f9 /op.c
parent9423a867e1bcf854b0ed9fff9eacaadd6f48ca8d (diff)
downloadperl-c58b680b06b94939ee921d7062cd14927136ae30.tar.gz
Stop using PL_glob_index for PL_globhook
If Glob.xs just uses the address of PL_op as its iterator key all the time (when called via PL_globhook too, not just via a glob override), the code is simpler.
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/op.c b/op.c
index 0a747a7b76..fd114b1194 100644
--- a/op.c
+++ b/op.c
@@ -9005,9 +9005,6 @@ Perl_ck_glob(pTHX_ OP *o)
gv = (GV *)newSV(0);
gv_init(gv, 0, "", 0, 0);
gv_IOadd(gv);
-#ifndef PERL_EXTERNAL_GLOB
- sv_setiv(GvSVn(gv),PL_glob_index++);
-#endif
op_append_elem(OP_GLOB, o, newGVOP(OP_GV, 0, gv));
SvREFCNT_dec_NN(gv); /* newGVOP increased it */
scalarkids(o);