cleanup: remove conditional compilation in cylindermodel.cpp

Parts of the code were not compiled on mobile, because they used
the undo-command infrastructure. However, since mobile now also
compiles that, we might as well remove the conditional compilation.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-03 21:37:52 +02:00
parent e2f77f9238
commit 4d5f25ccf4

View file

@ -471,11 +471,9 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
free_cylinder(copy);
dataChanged(index, index);
} else {
#ifndef SUBSURFACE_MOBILE
// On the EquipmentTab - place an editCylinder command.
int count = Command::editCylinder(index.row(), cyl, type, false);
emit divesEdited(count);
#endif
}
return true;
}
@ -709,7 +707,6 @@ void CylindersModel::clearTempCyl()
void CylindersModel::commitTempCyl(int row)
{
#ifndef SUBSURFACE_MOBILE
if (tempRow < 0)
return;
if (row != tempRow)
@ -728,7 +725,6 @@ void CylindersModel::commitTempCyl(int row)
}
free_cylinder(tempCyl);
tempRow = -1;
#endif
}
CylindersModelFiltered::CylindersModelFiltered(QObject *parent) : QSortFilterProxyModel(parent),