diff options
author | Karl Williamson <khw@cpan.org> | 2020-04-01 08:12:33 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-17 22:35:49 -0600 |
commit | a311ee08b6781f83a7785f578a26bbc21a7ae457 (patch) | |
tree | e310b25a69c29d6dbaba09343ef00bd9d51de14e /doop.c | |
parent | 556081f2a3d2db8054912964f61e9f1502d77c29 (diff) | |
download | perl-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); |