summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-23 23:17:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-24 10:40:12 -0700
commit9386eb2a0b8bd2540fef524c62b988858c64c445 (patch)
tree2214e24fef9bacbeeda8b5d373a4c255612b7e63 /core/qthelper.cpp
parent3d4698c0a19c452bc322d4be529c7036c61c8c4d (diff)
downloadsubsurface-9386eb2a0b8bd2540fef524c62b988858c64c445.tar.gz
cleanup: move get_dc_nickname from qthelper.cpp to divecomputer.cpp
1) qthelper is already huge. 2) set_dc_nickname et al. is already there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 91b3a3ee7..a6fb800be 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -9,7 +9,6 @@
#include "membuffer.h"
#include "subsurfacesysinfo.h"
#include "version.h"
-#include "divecomputer.h"
#include "errorhelper.h"
#include "planner.h"
#include "time.h"
@@ -527,16 +526,6 @@ void set_filename(const char *filename)
existing_filename = copy_string(filename);
}
-QString get_dc_nickname(const char *model, uint32_t deviceid)
-{
- const DiveComputerNode *existNode = dcList.getExact(model, deviceid);
-
- if (existNode && !existNode->nickName.isEmpty())
- return existNode->nickName;
- else
- return model;
-}
-
QString get_depth_string(int mm, bool showunit, bool showdecimal)
{
if (prefs.units.length == units::METERS) {