Simplify: remove uneeded variable: id

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-01-11 15:04:21 -02:00 committed by Dirk Hohndel
parent ed97f9f315
commit 438b5df089
2 changed files with 1 additions and 3 deletions

View file

@ -34,7 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
} }
DiveObjectHelper::DiveObjectHelper(struct dive *d) : DiveObjectHelper::DiveObjectHelper(struct dive *d) :
m_id(d->id),
m_rating(d->rating), m_rating(d->rating),
m_timestamp(d->when), m_timestamp(d->when),
m_location(get_dive_location(d) ? QString::fromUtf8(get_dive_location(d)) : EMPTY_DIVE_STRING), 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 int DiveObjectHelper::id() const
{ {
return m_id; return m_dive->id;
} }
QString DiveObjectHelper::date() const QString DiveObjectHelper::date() const

View file

@ -62,7 +62,6 @@ public:
QString otu() const; QString otu() const;
private: private:
int m_id;
int m_rating; int m_rating;
QString m_date; QString m_date;
timestamp_t m_timestamp; timestamp_t m_timestamp;