NavigationService: Remove unused SystemTask ref

This commit is contained in:
Riku Isokoski 2023-03-15 10:21:44 +02:00
parent 7e15a1e340
commit ca5e7d1adf
3 changed files with 2 additions and 11 deletions

View File

@ -18,8 +18,6 @@
#include "components/ble/NavigationService.h" #include "components/ble/NavigationService.h"
#include "systemtask/SystemTask.h"
namespace { namespace {
// 0001yyxx-78fc-48fe-8e23-433b3a1942d0 // 0001yyxx-78fc-48fe-8e23-433b3a1942d0
constexpr ble_uuid128_t CharUuid(uint8_t x, uint8_t y) { constexpr ble_uuid128_t CharUuid(uint8_t x, uint8_t y) {
@ -45,7 +43,7 @@ namespace {
} }
} // namespace } // namespace
Pinetime::Controllers::NavigationService::NavigationService(Pinetime::System::SystemTask& system) : m_system(system) { Pinetime::Controllers::NavigationService::NavigationService() {
characteristicDefinition[0] = {.uuid = &navFlagCharUuid.u, characteristicDefinition[0] = {.uuid = &navFlagCharUuid.u,
.access_cb = NAVCallback, .access_cb = NAVCallback,
.arg = this, .arg = this,

View File

@ -27,15 +27,11 @@
#undef min #undef min
namespace Pinetime { namespace Pinetime {
namespace System {
class SystemTask;
}
namespace Controllers { namespace Controllers {
class NavigationService { class NavigationService {
public: public:
explicit NavigationService(Pinetime::System::SystemTask& system); NavigationService();
void Init(); void Init();
@ -57,8 +53,6 @@ namespace Pinetime {
std::string m_narrative; std::string m_narrative;
std::string m_manDist; std::string m_manDist;
int m_progress; int m_progress;
Pinetime::System::SystemTask& m_system;
}; };
} }
} }

View File

@ -44,7 +44,6 @@ NimbleController::NimbleController(Pinetime::System::SystemTask& systemTask,
currentTimeService {dateTimeController}, currentTimeService {dateTimeController},
musicService {*this}, musicService {*this},
weatherService {dateTimeController}, weatherService {dateTimeController},
navService {systemTask},
batteryInformationService {batteryController}, batteryInformationService {batteryController},
immediateAlertService {systemTask, notificationManager}, immediateAlertService {systemTask, notificationManager},
heartRateService {systemTask, heartRateController}, heartRateService {systemTask, heartRateController},