mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 09:03:25 +00:00
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:
parent
ed97f9f315
commit
438b5df089
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -62,7 +62,6 @@ public:
|
|||
QString otu() const;
|
||||
|
||||
private:
|
||||
int m_id;
|
||||
int m_rating;
|
||||
QString m_date;
|
||||
timestamp_t m_timestamp;
|
||||
|
|
Loading…
Add table
Reference in a new issue