aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/converter.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/converter.js')
-rw-r--r--modern/src/common/converter.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/modern/src/common/converter.js b/modern/src/common/converter.js
index 8fdb4b8..e48b076 100644
--- a/modern/src/common/converter.js
+++ b/modern/src/common/converter.js
@@ -1,4 +1,4 @@
-const speedConverter = (value, unit) => {
+export const speedConverter = (value, unit) => {
let factor;
switch (unit) {
case 'kmh':
@@ -11,14 +11,3 @@ const speedConverter = (value, unit) => {
}
return (value * factor).toFixed(2);
};
-
-export const getConverter = (key) => {
- switch (key) {
- case 'speed':
- return speedConverter;
- default:
- return function (value) {
- return value;
- }
- }
-}; \ No newline at end of file