From 8396b4bf01f2d8a494b24c738acc11c813386248 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 31 Jan 2020 06:54:00 +0100 Subject: Remove plannerShared::instance() This class contains only static functions (i.e. it does not contain any state). There does not seem to be a reason to have an instance of that class. Therefore, remove the instance() function. Signed-off-by: Berthold Stoeger --- backend-shared/plannershared.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'backend-shared/plannershared.h') diff --git a/backend-shared/plannershared.h b/backend-shared/plannershared.h index 39acf98db..d3e9f9fe4 100644 --- a/backend-shared/plannershared.h +++ b/backend-shared/plannershared.h @@ -16,8 +16,6 @@ class plannerShared: public QObject { Q_OBJECT public: - static plannerShared *instance(); - // Planning data static deco_mode planner_deco_mode(); static int reserve_gas(); @@ -53,9 +51,6 @@ public slots: static void set_bottompo2(double value); static void set_decopo2(double value); static void set_bestmixend(int value); - -private: - plannerShared() {} }; #endif // PLANNERSHARED_H -- cgit v1.2.3-70-g09d2