summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-01-31 06:54:00 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-01-31 21:31:26 +0100
commit8396b4bf01f2d8a494b24c738acc11c813386248 (patch)
treed5dee8c1ffbc62d5b76e9850c28061aab541032f /backend-shared/plannershared.cpp
parent3b42de66dc469e8783df2a3ea08e90b310821668 (diff)
downloadsubsurface-8396b4bf01f2d8a494b24c738acc11c813386248.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index d35c1e676..a83a3bd56 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -6,12 +6,6 @@
#include "qt-models/diveplannermodel.h"
#include "qt-models/cylindermodel.h"
-plannerShared *plannerShared::instance()
-{
- static plannerShared *self = new plannerShared;
- return self;
-}
-
// Planning values
deco_mode plannerShared::planner_deco_mode()
{