mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove TankItem::diveCylinderStore
The last user of this member variable was removed in commit
96ed09bf14
.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
52cb38e540
commit
9485ace709
2 changed files with 0 additions and 11 deletions
|
@ -32,14 +32,6 @@ TankItem::TankItem(QObject *parent) :
|
||||||
trimix = trimixGradient;
|
trimix = trimixGradient;
|
||||||
air = blue;
|
air = blue;
|
||||||
hAxis = nullptr;
|
hAxis = nullptr;
|
||||||
memset(&diveCylinderStore, 0, sizeof(diveCylinderStore));
|
|
||||||
}
|
|
||||||
|
|
||||||
TankItem::~TankItem()
|
|
||||||
{
|
|
||||||
// Should this be clear_dive(diveCylinderStore)?
|
|
||||||
for (int i = 0; i < MAX_CYLINDERS; i++)
|
|
||||||
free((void *)diveCylinderStore.cylinder[i].type.description);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d)
|
void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d)
|
||||||
|
@ -51,7 +43,6 @@ void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, str
|
||||||
pInfoEntry = (struct plot_data *)malloc(size);
|
pInfoEntry = (struct plot_data *)malloc(size);
|
||||||
pInfoNr = plotInfo->nr;
|
pInfoNr = plotInfo->nr;
|
||||||
memcpy(pInfoEntry, plotInfo->entry, size);
|
memcpy(pInfoEntry, plotInfo->entry, size);
|
||||||
copy_cylinders(d, &diveCylinderStore, false);
|
|
||||||
dataModel = model;
|
dataModel = model;
|
||||||
connect(dataModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(modelDataChanged(QModelIndex, QModelIndex)), Qt::UniqueConnection);
|
connect(dataModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(modelDataChanged(QModelIndex, QModelIndex)), Qt::UniqueConnection);
|
||||||
modelDataChanged();
|
modelDataChanged();
|
||||||
|
|
|
@ -15,7 +15,6 @@ class TankItem : public QObject, public QGraphicsRectItem
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit TankItem(QObject *parent = 0);
|
explicit TankItem(QObject *parent = 0);
|
||||||
~TankItem();
|
|
||||||
void setHorizontalAxis(DiveCartesianAxis *horizontal);
|
void setHorizontalAxis(DiveCartesianAxis *horizontal);
|
||||||
void setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d);
|
void setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d);
|
||||||
|
|
||||||
|
@ -28,7 +27,6 @@ private:
|
||||||
void createBar(qreal x, qreal w, struct gasmix gas);
|
void createBar(qreal x, qreal w, struct gasmix gas);
|
||||||
DivePlotDataModel *dataModel;
|
DivePlotDataModel *dataModel;
|
||||||
DiveCartesianAxis *hAxis;
|
DiveCartesianAxis *hAxis;
|
||||||
struct dive diveCylinderStore;
|
|
||||||
struct plot_data *pInfoEntry;
|
struct plot_data *pInfoEntry;
|
||||||
int pInfoNr;
|
int pInfoNr;
|
||||||
qreal height;
|
qreal height;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue