summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2013-11-19 16:45:13 +1100
committerTony Cook <tony@develop-help.com>2013-11-19 16:45:13 +1100
commit480127f457b51d8eeba80d83675918c7e6f46095 (patch)
treebcea74b43be410f28325c559028778c103aaa1b4 /op.c
parent3f0a0d6e4f0d08b11bd4d458216c8382c59283b0 (diff)
downloadperl-480127f457b51d8eeba80d83675918c7e6f46095.tar.gz
S_already_defined no longer uses its gv parameter, remove it
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/op.c b/op.c
index fe6d89e9ec..a57309b79f 100644
--- a/op.c
+++ b/op.c
@@ -7199,8 +7199,7 @@ Perl_op_const_sv(pTHX_ const OP *o)
static bool
S_already_defined(pTHX_ CV *const cv, OP * const block, OP * const o,
- PADNAME * const name, SV ** const const_svp,
- GV * const gv)
+ PADNAME * const name, SV ** const const_svp)
{
assert (cv);
assert (o || name);
@@ -7375,7 +7374,7 @@ Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
cv_ckproto_len_flags(cv, (GV *)name, ps, ps_len, ps_utf8);
/* already defined? */
if (exists) {
- if (S_already_defined(aTHX_ cv,block,NULL,name,&const_sv,NULL))
+ if (S_already_defined(aTHX_ cv,block,NULL,name,&const_sv))
cv = NULL;
else {
if (attrs) goto attrs;
@@ -7747,7 +7746,7 @@ Perl_newATTRSUB_flags(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs,
cv_ckproto_len_flags(cv, gv, ps, ps_len, ps_utf8);
/* already defined (or promised)? */
if (exists || GvASSUMECV(gv)) {
- if (S_already_defined(aTHX_ cv, block, o, NULL, &const_sv, gv))
+ if (S_already_defined(aTHX_ cv, block, o, NULL, &const_sv))
cv = NULL;
else {
if (attrs) goto attrs;