cleanup: remove DivePlotDataModel::diveId

Nobody was using that member variable.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-30 22:03:15 +02:00 committed by Dirk Hohndel
parent 60b00162a9
commit 3ed36b2ab5
2 changed files with 0 additions and 4 deletions

View file

@ -7,7 +7,6 @@
DivePlotDataModel::DivePlotDataModel(QObject *parent) : DivePlotDataModel::DivePlotDataModel(QObject *parent) :
QAbstractTableModel(parent), QAbstractTableModel(parent),
diveId(0),
dcNr(0) dcNr(0)
{ {
init_plot_info(&pInfo); init_plot_info(&pInfo);
@ -176,7 +175,6 @@ void DivePlotDataModel::clear()
free(pInfo.pressures); free(pInfo.pressures);
pInfo.entry = nullptr; pInfo.entry = nullptr;
pInfo.pressures = nullptr; pInfo.pressures = nullptr;
diveId = -1;
dcNr = -1; dcNr = -1;
endRemoveRows(); endRemoveRows();
} }
@ -185,7 +183,6 @@ void DivePlotDataModel::clear()
void DivePlotDataModel::setDive(dive *d, const plot_info &info) void DivePlotDataModel::setDive(dive *d, const plot_info &info)
{ {
beginResetModel(); beginResetModel();
diveId = d->id;
dcNr = dc_number; dcNr = dc_number;
free(pInfo.entry); free(pInfo.entry);
free(pInfo.pressures); free(pInfo.pressures);

View file

@ -92,7 +92,6 @@ public:
private: private:
struct plot_info pInfo; struct plot_info pInfo;
int diveId;
unsigned int dcNr; unsigned int dcNr;
struct deco_state plot_deco_state; struct deco_state plot_deco_state;
}; };