QML-UI: delete unused code

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-05 06:29:06 -08:00
parent 703c3de880
commit c9dbb424f2

View file

@ -30,13 +30,9 @@ QString QMLProfile::diveId() const
void QMLProfile::setDiveId(const QString &diveId)
{
m_diveId = diveId;
int no = -1;
struct dive *d = get_dive_by_uniq_id(m_diveId.toInt());
if (d)
no = d->number;
if (m_diveId.toInt() < 1)
return;
if (!d)
return;