Skip to content
Snippets Groups Projects
Commit 2778cd5f authored by David Smadja's avatar David Smadja
Browse files

Remove unused function

parent 65b32d84
No related branches found
No related tags found
1 merge request!308Align slider to test case
...@@ -27,33 +27,6 @@ ...@@ -27,33 +27,6 @@
(situationIndex) => shared.testCases[situationIndex], (situationIndex) => shared.testCases[situationIndex],
), ),
) )
function calculateTotal(
evaluationByName: EvaluationByName,
calculationName: CalculationName,
rootDecompositionName: string,
totalDecomposition: DecompositionReference[] | undefined,
): number {
if (totalDecomposition === undefined) {
return (
evaluationByName[rootDecompositionName]?.calculationEvaluationByName[
calculationName
]?.deltaAtVectorIndex ?? 0
)
}
let total = 0
for (const { name, negate } of totalDecomposition) {
const value =
evaluationByName[name]?.calculationEvaluationByName[calculationName]
?.deltaAtVectorIndex ?? 0
if (negate) {
total -= value
} else {
total += value
}
}
return total
}
</script> </script>
<div <div
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment