]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
removed commented lines.
authorG.E <gregory.economou@vectorcamp.gr>
Tue, 23 Apr 2024 20:46:08 +0000 (23:46 +0300)
committerG.E <gregory.economou@vectorcamp.gr>
Tue, 23 Apr 2024 20:46:08 +0000 (23:46 +0300)
src/nfagraph/ng_limex_accel.cpp
src/nfagraph/ng_som_util.cpp
src/rose/rose_build_castle.cpp

index 58149ad3a7467517957bbdde5f2318e0207109d6..d31f84c0912615802256ac884e6206910407f226 100644 (file)
@@ -811,11 +811,9 @@ depth_done:
                 return true;
             }
         }
-    // } 
 
     // Second option: a two-byte shufti (i.e. less than eight 2-byte
     // literals)
-    // if (depth > 1) {
         for (unsigned int i = 0; i < (depth - 1); i++) {
             if (depthReach[i].count() * depthReach[i+1].count()
                 <= DOUBLE_SHUFTI_LIMIT) {
index 01beec8d24b745502003368634131def0cb95dae..0c44f0636b0a2d554dacd6e15db2ef85640f3cd3 100644 (file)
@@ -267,19 +267,6 @@ bool somMayGoBackwards(NFAVertex u, const NGHolder &g,
     boost::depth_first_search(c_g, visitor(backEdgeVisitor)
                                    .root_vertex(c_g.start));
 
-    // with be.clear right above does this ever run at all?
-    //for (const auto &e : be) {
-    //    NFAVertex s = source(e, c_g);
-    //    NFAVertex t = target(e, c_g);
-    //    DEBUG_PRINTF("back edge %zu %zu\n", c_g[s].index, c_g[t].index);
-    //    if (s != t) {
-    //        assert(0);
-    //        DEBUG_PRINTF("eek big cycle\n");
-    //        rv = true; /* big cycle -> eek */
-    //        goto exit;
-    //    }
-    //}
-
     DEBUG_PRINTF("checking acyclic+selfloop graph\n");
 
     rv = !firstMatchIsFirst(c_g);
index 2a1dcdd972d34bc0b0dea18513a3b51cde8bf720..990f0c55cfffc35b61ddd982f9924b2086e7217b 100644 (file)
@@ -170,7 +170,6 @@ void renovateCastle(RoseBuildImpl &tbi, CastleProto *castle,
                 return; /* bail - TODO: be less lazy */
             }
 
-            //vector<CharReach> rem_local_cr;
             u32 ok_count = 0;
             for (auto it = e.s.end() - g[v].left.lag; it != e.s.end(); ++it) {
                 if (!isSubsetOf(*it, cr)) {