mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
60b00162a9
commit
3ed36b2ab5
2 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue