diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-01-31 21:08:09 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-01-31 21:50:58 -0700 |
commit | 93744585e00eaf4a39b14bacaef4131f0143a2f9 (patch) | |
tree | 5c698baa3eaa644b0627953de732f9753ff08a7e /regexec.c | |
parent | 68b0315ff7dc2468bf964d18c68bf41b8abce162 (diff) | |
download | perl-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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 |