remove unnecessary condition

This commit is contained in:
Contramundum
2023-12-14 13:56:12 +09:00
parent 01ecc5563b
commit a9b23aee2e
@@ -181,9 +181,6 @@ const getIsDominatedND = (normalizedValues: number[][]) => {
}
const getIsDominated2D = (normalizedValues: number[][]) => {
if (normalizedValues.length === 0) {
return []
}
// Fast pareto front algorithm (O(N log N) complexity).
const sorted = normalizedValues
.map((values, i) => [values[0], values[1], i])