regcomp.c: Remove unnecessary flag settings
authorKarl Williamson <public@khwilliamson.com>
Tue, 24 Sep 2013 16:25:45 +0000 (10:25 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 24 Sep 2013 17:36:21 +0000 (11:36 -0600)
I've looked at the code around each of these flag sets, and the flag
should already be set when these are called, so they are redundant.

regcomp.c

index 7466f5d..a1cd981 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -3496,7 +3496,6 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp,
                        flags &= ~SCF_DO_STCLASS_AND;
                        StructCopy(&accum, data->start_class, regnode_ssc);
                        flags |= SCF_DO_STCLASS_OR;
-                        SET_SSC_EOS(data->start_class);
                    }
                }
 
@@ -4160,7 +4159,6 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp,
                        flags &= ~SCF_DO_STCLASS_AND;
                        StructCopy(&this_class, data->start_class, regnode_ssc);
                        flags |= SCF_DO_STCLASS_OR;
-                        SET_SSC_EOS(data->start_class);
                    }
                } else {                /* Non-zero len */
                    if (flags & SCF_DO_STCLASS_OR) {
@@ -5000,7 +4998,6 @@ PerlIO_printf(Perl_debug_log, "LHS=%"UVdf" RHS=%"UVdf"\n",
                     flags &= ~SCF_DO_STCLASS_AND;
                     StructCopy(&accum, data->start_class, regnode_ssc);
                     flags |= SCF_DO_STCLASS_OR;
-                    SET_SSC_EOS(data->start_class);
                 }
             }
             scan= tail;