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) :
|
||||
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);
|
||||
|
|
|
@ -92,7 +92,6 @@ public:
|
|||
|
||||
private:
|
||||
struct plot_info pInfo;
|
||||
int diveId;
|
||||
unsigned int dcNr;
|
||||
struct deco_state plot_deco_state;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue