diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-27 22:39:01 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 0f8560276d1a8116f4d4e7ce9c950d3a433e38c8 (patch) | |
tree | c2b0c9cdda3b5c3421086fc21336e3ba14d66eaa /qt-models/diveplannermodel.cpp | |
parent | f0f3b4a13c59f7886ae41de85929831fa100b5bb (diff) | |
download | subsurface-0f8560276d1a8116f4d4e7ce9c950d3a433e38c8.tar.gz |
planner: remove DivePlannerPointsModel::recalc flag
There was no user of that flag left.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index b51e45a05..79d1280d5 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -109,11 +109,9 @@ void DivePlannerPointsModel::loadFromDive(dive *dIn) int depthsum = 0; int samplecount = 0; o2pressure_t last_sp; - bool oldRec = recalc; struct divecomputer *dc = &(d->dc); const struct event *evd = NULL; enum divemode_t current_divemode = UNDEF_COMP_TYPE; - recalc = false; cylinders.updateDive(d); duration_t lasttime = { 0 }; duration_t lastrecordedtime = {}; @@ -177,7 +175,6 @@ void DivePlannerPointsModel::loadFromDive(dive *dIn) current_divemode = get_current_divemode(dc, d->dc.duration.seconds, &evd, ¤t_divemode); if (!hasMarkedSamples && !dc->last_manual_time.seconds) addStop(0, d->dc.duration.seconds,cylinderid, last_sp.mbar, true, current_divemode); - recalc = oldRec; DiveTypeSelectionModel::instance()->repopulate(); preserved_until = d->duration; @@ -450,8 +447,7 @@ int DivePlannerPointsModel::rowCount(const QModelIndex&) const DivePlannerPointsModel::DivePlannerPointsModel(QObject *parent) : QAbstractTableModel(parent), d(nullptr), cylinders(true), - mode(NOTHING), - recalc(true) + mode(NOTHING) { memset(&diveplan, 0, sizeof(diveplan)); startTime.setTimeSpec(Qt::UTC); |