summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-05 06:29:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-05 06:29:06 -0800
commitc9dbb424f294ce55ce7b431155e07ead950227a3 (patch)
tree67d1d65336dca8efc1f20fde2bd53c861d105cc2
parent703c3de880d16949981fc5d35e9328c3ef80a62d (diff)
downloadsubsurface-c9dbb424f294ce55ce7b431155e07ead950227a3.tar.gz
QML-UI: delete unused code
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qmlprofile.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-mobile/qmlprofile.cpp b/qt-mobile/qmlprofile.cpp
index 1ad84e735..67eb1328a 100644
--- a/qt-mobile/qmlprofile.cpp
+++ b/qt-mobile/qmlprofile.cpp
@@ -30,13 +30,9 @@ QString QMLProfile::diveId() const
void QMLProfile::setDiveId(const QString &diveId)
{
m_diveId = diveId;
- int no = -1;
struct dive *d = get_dive_by_uniq_id(m_diveId.toInt());
- if (d)
- no = d->number;
if (m_diveId.toInt() < 1)
return;
-
if (!d)
return;