From 663fe7f78b23db1ca2badf2889498444f31c7630 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 20 Jan 2020 20:26:32 +0100 Subject: [PATCH] backendShared: remove length slot Length variables are updated from the QML and desktop directly. Signed-off-by: jan Iversen Signed-off-by: Dirk Hohndel --- backend-shared/plannershared.cpp | 10 ---------- backend-shared/plannershared.h | 5 +---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp index 622953dfd..631893d3e 100644 --- a/backend-shared/plannershared.cpp +++ b/backend-shared/plannershared.cpp @@ -11,11 +11,6 @@ plannerShared *plannerShared::instance() static plannerShared *self = new plannerShared; return self; } -plannerShared::plannerShared() -{ - // Be informed when user switches METER <-> FEET - connect(qPrefUnits::instance(), &qPrefUnits::lengthChanged, this, &unit_lengthChangedSlot); -} // Planning values deco_mode plannerShared::planner_deco_mode() @@ -213,8 +208,3 @@ void plannerShared::set_bestmixend(int value) qPrefDivePlanner::set_bestmixend(units_to_depth(value).mm); CylindersModel::instance()->updateBestMixes(); } - -// Handle when user changes length measurement type -void plannerShared::unit_lengthChangedSlot(int value) -{ -} diff --git a/backend-shared/plannershared.h b/backend-shared/plannershared.h index 1062dc85f..3c3a97018 100644 --- a/backend-shared/plannershared.h +++ b/backend-shared/plannershared.h @@ -117,11 +117,8 @@ signals: void decopo2Changed(double value); void bestmixendChanged(int value); -private slots: - static void unit_lengthChangedSlot(int value); - private: - plannerShared(); + plannerShared() {} }; #endif // PLANNERSHARED_H