diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-03-15 10:19:30 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-03-19 12:41:01 +0200 |
| commit | 7e15a1e340872829c9d67b3c95689daccd12aa8b (patch) | |
| tree | 3ff7c34e1a2afbdb08139bdbff22c3c929784327 /src/components | |
| parent | c7a9b3d7d324b9c6fcf5ad70869c8b5e45267dba (diff) | |
WeatherService: Remove unused SystemTask reference
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ble/NimbleController.cpp | 2 | ||||
| -rw-r--r-- | src/components/ble/weather/WeatherService.cpp | 4 | ||||
| -rw-r--r-- | src/components/ble/weather/WeatherService.h | 7 |
3 files changed, 3 insertions, 10 deletions
diff --git a/src/components/ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp index 7c0942fd..9c88d68c 100644 --- a/src/components/ble/NimbleController.cpp +++ b/src/components/ble/NimbleController.cpp @@ -43,7 +43,7 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask, alertNotificationClient {systemTask, notificationManager}, currentTimeService {dateTimeController}, musicService {*this}, - weatherService {systemTask, dateTimeController}, + weatherService {dateTimeController}, navService {systemTask}, batteryInformationService {batteryController}, immediateAlertService {systemTask, notificationManager}, diff --git a/src/components/ble/weather/WeatherService.cpp b/src/components/ble/weather/WeatherService.cpp index fd13f819..d9e80be8 100644 --- a/src/components/ble/weather/WeatherService.cpp +++ b/src/components/ble/weather/WeatherService.cpp @@ -19,7 +19,6 @@ #include <qcbor/qcbor_spiffy_decode.h> #include "WeatherService.h" #include "libs/QCBOR/inc/qcbor/qcbor.h" -#include "systemtask/SystemTask.h" int WeatherCallback(uint16_t /*connHandle*/, uint16_t /*attrHandle*/, struct ble_gatt_access_ctxt* ctxt, void* arg) { return static_cast<Pinetime::Controllers::WeatherService*>(arg)->OnCommand(ctxt); @@ -27,8 +26,7 @@ int WeatherCallback(uint16_t /*connHandle*/, uint16_t /*attrHandle*/, struct ble namespace Pinetime { namespace Controllers { - WeatherService::WeatherService(System::SystemTask& system, DateTime& dateTimeController) - : system(system), dateTimeController(dateTimeController) { + WeatherService::WeatherService(DateTime& dateTimeController) : dateTimeController(dateTimeController) { nullHeader = &nullTimelineheader; nullTimelineheader->timestamp = 0; } diff --git a/src/components/ble/weather/WeatherService.h b/src/components/ble/weather/WeatherService.h index 00650e90..d1c347a9 100644 --- a/src/components/ble/weather/WeatherService.h +++ b/src/components/ble/weather/WeatherService.h @@ -36,15 +36,11 @@ int WeatherCallback(uint16_t connHandle, uint16_t attrHandle, struct ble_gatt_access_ctxt* ctxt, void* arg); namespace Pinetime { - namespace System { - class SystemTask; - } - namespace Controllers { class WeatherService { public: - explicit WeatherService(System::SystemTask& system, DateTime& dateTimeController); + explicit WeatherService(DateTime& dateTimeController); void Init(); @@ -133,7 +129,6 @@ namespace Pinetime { uint16_t eventHandle {}; - Pinetime::System::SystemTask& system; Pinetime::Controllers::DateTime& dateTimeController; std::vector<std::unique_ptr<WeatherData::TimelineHeader>> timeline; |
