Commit 54e1a3ce authored by Charles Vernerey's avatar Charles Vernerey
Browse files

Update CoverSize propagator : remove useless block of code

parent f75e9d68
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -87,18 +87,6 @@ public class CoverSize extends Propagator<IntVar> {
        int freqLB = cover.maskCardinality();
        int freqUB = cover.cardinality();
        freq.updateBounds(freqLB, freqUB, this);

        if (freqUB == freq.getLB()) {
            // remove all unbound items that are not super sets of coverage
            // because these would necessarily decrease the coverage
            for (int i = nU - 1; i >= firstIndex ; i--) {
                int idx = freeItems[i];
                if (!cover.isSubsetOf(idx)) {
                    nU = removeItem(i, nU, idx);
                    items[idx].setToFalse(this);
                }
            }
        }
        lastIndexFree.set(nU);
    }