diff options
author | geduxas <gediminas.vileikis@gmail.com> | 2023-09-22 06:32:57 +0000 |
---|---|---|
committer | geduxas <gediminas.vileikis@gmail.com> | 2023-09-22 06:32:57 +0000 |
commit | 54167a919565d6bafde37c9023c0062cd82fbd65 (patch) | |
tree | 6fcf7629ebeca8c845fe8bacc75056fa122073f4 /modern/src/common/util/converter.js | |
parent | ab2e8e4a574959567935f1e1543ded197be03072 (diff) | |
download | trackermap-web-54167a919565d6bafde37c9023c0062cd82fbd65.tar.gz trackermap-web-54167a919565d6bafde37c9023c0062cd82fbd65.tar.bz2 trackermap-web-54167a919565d6bafde37c9023c0062cd82fbd65.zip |
Fixed
Diffstat (limited to 'modern/src/common/util/converter.js')
-rw-r--r-- | modern/src/common/util/converter.js | 14 |
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) => { |