summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-26 10:21:09 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-27 19:21:31 -0700
commit18af16d0e66326ce358cf094d4b27aa663e7a10d (patch)
tree9bc6abbe9279ea4144b5c0fa9a6c0ea3a2d3b675 /regcomp.c
parentc52a3e710d22e427503266cd12c740eaf81515ea (diff)
downloadperl-18af16d0e66326ce358cf094d4b27aa663e7a10d.tar.gz
regcomp.c: Remove no longer necessary tests
A previous commit changed add_range_to_invlist() to do the creation that these lines did.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/regcomp.c b/regcomp.c
index bdc8343f0f..fdf96f7723 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -9240,9 +9240,6 @@ S_set_regclass_bit_fold(pTHX_ RExC_state_t *pRExC_state, regnode* node, const U8
and they have a fold, they should match if the target is utf8, and
not otherwise. We add the character here, and calculate the fold
later, with the other nonbitmap folds */
- if (! *nonbitmap_ptr) {
- *nonbitmap_ptr = _new_invlist(2);
- }
*nonbitmap_ptr = add_range_to_invlist(*nonbitmap_ptr, value, value);
}
@@ -9793,9 +9790,6 @@ parseit:
if (value > 255) {
const UV prevnatvalue = NATIVE_TO_UNI(prevvalue);
const UV natvalue = NATIVE_TO_UNI(value);
- if (! nonbitmap) {
- nonbitmap = _new_invlist(2);
- }
nonbitmap = add_range_to_invlist(nonbitmap, prevnatvalue, natvalue);
}
#if 0