From 4d5f25ccf44eb3a55def84aac43aed344afe791f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 3 Apr 2020 21:37:52 +0200 Subject: 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 --- qt-models/cylindermodel.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'qt-models') diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index e519d347b..04abe2fdb 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -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), -- cgit v1.2.3-70-g09d2