diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 67c465c..0db067a 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -521,13 +521,9 @@ struct Iterator { // Call Stepwise::step for each element of remaining until it returns true. // Applies a permutation to `remaining` as a side effect. -template -void runInterleaved(std::span remaining, int stepLimit = -1) { +template void runInterleaved(std::span remaining) { while (remaining.size() > 0) { for (int i = 0; i < int(remaining.size());) { - if (stepLimit-- == 0) { - return; - } bool done = remaining[i].step(); if (done) { if (i != int(remaining.size()) - 1) { @@ -542,16 +538,9 @@ void runInterleaved(std::span remaining, int stepLimit = -1) { } }; -template -void runSequential(std::span remaining, int stepLimit = -1) { +template void runSequential(std::span remaining) { for (auto &r : remaining) { - if (stepLimit-- == 0) { - return; - } while (!r.step()) { - if (stepLimit-- == 0) { - return; - } } } }