summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-03-29 16:37:10 +0100
committerNicholas Clark <nick@ccl4.org>2011-05-18 20:26:54 +0100
commit0780bc72ac07a0de22bcbd2390e8812c3a23d481 (patch)
tree72f632e96897bfb3690beec21d2909fb1899d9f8 /regcomp.c
parentf19a8d855f15f8e08413bb049a7effea4cd44b3c (diff)
downloadperl-0780bc72ac07a0de22bcbd2390e8812c3a23d481.tar.gz
In Perl_regdupe_internal() eliminate npar, which is assigned to but never used.
It has been unused since 28d8d7f41ab202dd restructured the regexp dup code.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index ba59390da2..47590b966d 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11738,12 +11738,11 @@ Perl_regdupe_internal(pTHX_ REGEXP * const rx, CLONE_PARAMS *param)
dVAR;
struct regexp *const r = (struct regexp *)SvANY(rx);
regexp_internal *reti;
- int len, npar;
+ int len;
RXi_GET_DECL(r,ri);
PERL_ARGS_ASSERT_REGDUPE_INTERNAL;
- npar = r->nparens+1;
len = ProgLen(ri);
Newxc(reti, sizeof(regexp_internal) + len*sizeof(regnode), char, regexp_internal);