Remove hacks regarding multiple gasmixes and cylinders

Enabling cylinder edit in Subsurface-mobile our previous hacks
regarding multiple cylinders and gasmixes must be removed.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Joakim Bygdell 2016-08-29 21:35:06 +02:00 committed by Dirk Hohndel
parent 674d8331f5
commit 4e0200863b
3 changed files with 5 additions and 21 deletions

View file

@ -373,13 +373,7 @@ QString DiveObjectHelper::sumWeight() const
QString DiveObjectHelper::getCylinder() const
{
QString getCylinder;
if (is_cylinder_used(m_dive, 1)){
getCylinder = QObject::tr("Multiple");
}
else {
getCylinder = m_dive->cylinder[0].type.description;
}
QString getCylinder = m_dive->cylinder[0].type.description;
return getCylinder;
}