summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-04-01 08:12:33 -0600
committerKarl Williamson <khw@cpan.org>2020-07-17 22:35:49 -0600
commita311ee08b6781f83a7785f578a26bbc21a7ae457 (patch)
treee310b25a69c29d6dbaba09343ef00bd9d51de14e /doop.c
parent556081f2a3d2db8054912964f61e9f1502d77c29 (diff)
downloadperl-a311ee08b6781f83a7785f578a26bbc21a7ae457.tar.gz
doop.c: Remove unnecessary cautiousness
The code this commit removes was used to make sure there was enough space allocated. It actually isn't necessary to be so cautious. The computed value, rounded up, is sufficient.
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/doop.c b/doop.c
index a06992f906..88220092c3 100644
--- a/doop.c
+++ b/doop.c
@@ -442,9 +442,6 @@ S_do_trans_invmap(pTHX_ SV * const sv, AV * const invmap)
* assume cannot */
if (! out_is_utf8 && (PL_op->op_private & OPpTRANS_CAN_FORCE_UTF8)) {
inplace = FALSE;
- if (max_expansion < 2) {
- max_expansion = 2;
- }
}
s = (U8*)SvPV_nomg(sv, len);