summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-01-31 21:08:09 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-31 21:50:58 -0700
commit93744585e00eaf4a39b14bacaef4131f0143a2f9 (patch)
tree5c698baa3eaa644b0627953de732f9753ff08a7e /regexec.c
parent68b0315ff7dc2468bf964d18c68bf41b8abce162 (diff)
downloadperl-93744585e00eaf4a39b14bacaef4131f0143a2f9.tar.gz
regexec.c: Remove redundant code
This code does a save_re_context() and then calls swash_init, which also does a save_re_context. This is unnecessary; the save should be done in the lowest possible level.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index fc078cf11b..ec6886a7bc 100644
--- a/regexec.c
+++ b/regexec.c
@@ -141,10 +141,8 @@ static const char* const non_utf8_target_but_utf8_required
#define LOAD_UTF8_CHARCLASS(swash_ptr, property_name) STMT_START { \
if (!swash_ptr) { \
U8 flags = _CORE_SWASH_INIT_ACCEPT_INVLIST; \
- ENTER; save_re_context(); \
swash_ptr = _core_swash_init("utf8", property_name, &PL_sv_undef, \
1, 0, NULL, &flags); \
- LEAVE; \
assert(swash_ptr); \
} \
} STMT_END