aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2016-01-11 15:04:21 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-11 15:46:00 -0800
commit438b5df089edb3f8a90a6fa1bfdb5abba9847749 (patch)
tree79b2570f68b3ce1a71365cb080187496ccd0d6d9 /subsurface-core
parented97f9f3158fbf90f241fad8418de138bd242ef2 (diff)
downloadsubsurface-438b5df089edb3f8a90a6fa1bfdb5abba9847749.tar.gz
Simplify: remove uneeded variable: id
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.cpp3
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
index 94ba93726..c7e111d3b 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
@@ -34,7 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
}
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
- m_id(d->id),
m_rating(d->rating),
m_timestamp(d->when),
m_location(get_dive_location(d) ? QString::fromUtf8(get_dive_location(d)) : EMPTY_DIVE_STRING),
@@ -133,7 +132,7 @@ int DiveObjectHelper::number() const
int DiveObjectHelper::id() const
{
- return m_id;
+ return m_dive->id;
}
QString DiveObjectHelper::date() const
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.h b/subsurface-core/subsurface-qt/DiveObjectHelper.h
index ee51b0ee3..f1c1a19d5 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.h
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.h
@@ -62,7 +62,6 @@ public:
QString otu() const;
private:
- int m_id;
int m_rating;
QString m_date;
timestamp_t m_timestamp;