aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/Weather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/Weather.cpp')
-rw-r--r--src/displayapp/Weather.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/displayapp/Weather.cpp b/src/displayapp/Weather.cpp
deleted file mode 100644
index a0f0a281..00000000
--- a/src/displayapp/Weather.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "displayapp/Weather.h"
-
-using namespace Pinetime::Applications;
-
-Temperature Pinetime::Applications::Convert(Controllers::SimpleWeatherService::Temperature temp,
- Controllers::Settings::WeatherFormat format) {
- Temperature t = {temp.temp};
- if (format == Controllers::Settings::WeatherFormat::Imperial) {
- t.temp = t.temp * 9 / 5 + 3200;
- }
- t.temp = t.temp / 100 + (t.temp % 100 >= 50 ? 1 : 0);
- return t;
-}