Cleanup: remove redundant "row" member of WeightModel

Before undoization, the WeightModel could be out-of-sync with
the actual dive and therefore had a row member variable. This
became redundant. Therefore, remove it.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-11-03 15:32:59 +01:00 committed by Dirk Hohndel
parent 2cfb35b6d7
commit 92b833a7d8
2 changed files with 8 additions and 13 deletions

View file

@ -25,7 +25,7 @@ public:
void passInData(const QModelIndex &index, const QVariant &value);
void clear();
void updateDive(dive *d);
weightsystem_t weightSystemAt(const QModelIndex &index);
weightsystem_t weightSystemAt(const QModelIndex &index) const;
bool changed;
public
@ -36,7 +36,6 @@ slots:
private:
dive *d;
int rows;
};
#endif