diff --git a/examples/patbench.cc b/examples/patbench.cc index 2aefbb69..31dc73a5 100644 --- a/examples/patbench.cc +++ b/examples/patbench.cc @@ -360,9 +360,6 @@ public: size_t sum = 0; auto packs = [](size_t z, const string &packet) { return z + packet.size(); }; sum += std::accumulate(packets.begin(), packets.end(), 0, packs); - // for (const auto &packet : packets) { - // sum += packet.size(); - // } return sum; } diff --git a/src/nfa/mcclellancompile.cpp b/src/nfa/mcclellancompile.cpp index 0b403af7..d1dec0c4 100644 --- a/src/nfa/mcclellancompile.cpp +++ b/src/nfa/mcclellancompile.cpp @@ -535,10 +535,6 @@ size_t calcWideRegionSize(const dfa_info &info) { (info.impl_alpha_size + 1) * sizeof(u16) + 2); }; rv += std::accumulate(info.wide_symbol_chain.begin(), info.wide_symbol_chain.end(), 0, chainz); - // for (const auto &chain : info.wide_symbol_chain) { - // rv += ROUNDUP_N(chain.size(), 2) + - // (info.impl_alpha_size + 1) * sizeof(u16) + 2; - // } return ROUNDUP_16(rv); }