diff --git a/src/lib/components/StandardOfLiving.svelte b/src/lib/components/StandardOfLiving.svelte
index 65e4a247797fb0531ab7ff15f8a3a5304da4c245..7b32a028a9dece17c5fb4a986fbcda94402b791c 100644
--- a/src/lib/components/StandardOfLiving.svelte
+++ b/src/lib/components/StandardOfLiving.svelte
@@ -44,20 +44,6 @@
     variableName: string,
     populationId: string,
   ): number | undefined {
-    return getCalculatedVariableValue(
-      situation,
-      valuesByCalculationNameByVariableName,
-      variableName,
-      populationId,
-    ) as number | undefined
-  }
-
-  function getCalculatedVariableValue(
-    situation: Situation,
-    valuesByCalculationNameByVariableName: ValuesByCalculationNameByVariableName,
-    variableName: string,
-    populationId: string,
-  ): VariableValue | undefined {
     const variable = variableSummaryByName[variableName]
     if (variable === undefined) {
       return undefined
@@ -67,7 +53,7 @@
       valuesByCalculationNameByVariableName,
       variable,
       populationId,
-    ).law
+    ).law as number | undefined
   }
 </script>