summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
};