]> granicus.if.org Git - onig/commitdiff
remove redundant codes
authorK.Kosako <kosako@sofnec.co.jp>
Mon, 14 Aug 2017 01:53:15 +0000 (10:53 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Mon, 14 Aug 2017 01:53:15 +0000 (10:53 +0900)
src/regparse.c

index f961db68752fbd1a0d53c4ea1f734649d3fa1695..98dec0e581ef7051a1d568d778f498949816ee6c 100644 (file)
@@ -2571,7 +2571,6 @@ and_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
   bitset_and(bsr1, bsr2);
   if (bsr1 != dest->bs) {
     bitset_copy(dest->bs, bsr1);
-    bsr1 = dest->bs;
   }
   if (not1 != 0) {
     bitset_invert(dest->bs);
@@ -2629,7 +2628,6 @@ or_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
   bitset_or(bsr1, bsr2);
   if (bsr1 != dest->bs) {
     bitset_copy(dest->bs, bsr1);
-    bsr1 = dest->bs;
   }
   if (not1 != 0) {
     bitset_invert(dest->bs);