aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util/converter.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/util/converter.js')
-rw-r--r--modern/src/common/util/converter.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/modern/src/common/util/converter.js b/modern/src/common/util/converter.js
index 6890763b..cb21566b 100644
--- a/modern/src/common/util/converter.js
+++ b/modern/src/common/util/converter.js
@@ -10,18 +10,6 @@ const speedConverter = (unit) => {
}
};
-const speedConverterKph = (unit) => {
- switch (unit) {
- case 'kmh':
- return 1;
- case 'mph':
- return 0.62137;
- case 'kn':
- default:
- return 0.539957;
- }
-};
-
export const speedUnitString = (unit, t) => {
switch (unit) {
case 'kmh':
@@ -36,8 +24,6 @@ export const speedUnitString = (unit, t) => {
export const speedFromKnots = (value, unit) => value * speedConverter(unit);
-export const speedFromKph = (value, unit) => value * speedConverterKph(unit);
-
export const speedToKnots = (value, unit) => value / speedConverter(unit);
const distanceConverter = (unit) => {