summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-30 22:03:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-30 14:14:13 -0700
commit3ed36b2ab5344466eae5eba141b8b62ac4c966fc (patch)
treee8806ef33d62ee89d1ebbcae23b67934d7438708
parent60b00162a9cc666a1af062d2610f28cfe7df09ae (diff)
downloadsubsurface-3ed36b2ab5344466eae5eba141b8b62ac4c966fc.tar.gz
cleanup: remove DivePlotDataModel::diveId
Nobody was using that member variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--qt-models/diveplotdatamodel.cpp3
-rw-r--r--qt-models/diveplotdatamodel.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp
index efa6147c2..c964d4ba2 100644
--- a/qt-models/diveplotdatamodel.cpp
+++ b/qt-models/diveplotdatamodel.cpp
@@ -7,7 +7,6 @@
DivePlotDataModel::DivePlotDataModel(QObject *parent) :
QAbstractTableModel(parent),
- diveId(0),
dcNr(0)
{
init_plot_info(&pInfo);
@@ -176,7 +175,6 @@ void DivePlotDataModel::clear()
free(pInfo.pressures);
pInfo.entry = nullptr;
pInfo.pressures = nullptr;
- diveId = -1;
dcNr = -1;
endRemoveRows();
}
@@ -185,7 +183,6 @@ void DivePlotDataModel::clear()
void DivePlotDataModel::setDive(dive *d, const plot_info &info)
{
beginResetModel();
- diveId = d->id;
dcNr = dc_number;
free(pInfo.entry);
free(pInfo.pressures);
diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h
index 6267d3705..cb0d0e3c0 100644
--- a/qt-models/diveplotdatamodel.h
+++ b/qt-models/diveplotdatamodel.h
@@ -92,7 +92,6 @@ public:
private:
struct plot_info pInfo;
- int diveId;
unsigned int dcNr;
struct deco_state plot_deco_state;
};