Simplify: remove Maxcns and OTU variables

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:56:50 -02:00 committed by Dirk Hohndel
parent 75561ff956
commit 6f95242ff1
2 changed files with 2 additions and 6 deletions

View file

@ -34,8 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
} }
DiveObjectHelper::DiveObjectHelper(struct dive *d) : DiveObjectHelper::DiveObjectHelper(struct dive *d) :
m_maxcns(d->maxcns),
m_otu(d->otu),
m_dive(d) m_dive(d)
{ {
struct dive_site *ds = get_dive_site_by_uuid(d->dive_site_uuid); struct dive_site *ds = get_dive_site_by_uuid(d->dive_site_uuid);
@ -235,12 +233,12 @@ QString DiveObjectHelper::trip() const
QString DiveObjectHelper::maxcns() const QString DiveObjectHelper::maxcns() const
{ {
return m_maxcns; return QString(m_dive->maxcns);
} }
QString DiveObjectHelper::otu() const QString DiveObjectHelper::otu() const
{ {
return m_otu; return QString(m_dive->otu);
} }
int DiveObjectHelper::rating() const int DiveObjectHelper::rating() const

View file

@ -71,8 +71,6 @@ private:
QString m_sac; QString m_sac;
QStringList m_weights; QStringList m_weights;
QStringList m_cylinders; QStringList m_cylinders;
QString m_maxcns;
QString m_otu;
struct dive *m_dive; struct dive *m_dive;
}; };
Q_DECLARE_METATYPE(DiveObjectHelper *) Q_DECLARE_METATYPE(DiveObjectHelper *)