mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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;
|
||||
air = blue;
|
||||
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)
|
||||
|
@ -51,7 +43,6 @@ void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, str
|
|||
pInfoEntry = (struct plot_data *)malloc(size);
|
||||
pInfoNr = plotInfo->nr;
|
||||
memcpy(pInfoEntry, plotInfo->entry, size);
|
||||
copy_cylinders(d, &diveCylinderStore, false);
|
||||
dataModel = model;
|
||||
connect(dataModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(modelDataChanged(QModelIndex, QModelIndex)), Qt::UniqueConnection);
|
||||
modelDataChanged();
|
||||
|
|
|
@ -15,7 +15,6 @@ class TankItem : public QObject, public QGraphicsRectItem
|
|||
|
||||
public:
|
||||
explicit TankItem(QObject *parent = 0);
|
||||
~TankItem();
|
||||
void setHorizontalAxis(DiveCartesianAxis *horizontal);
|
||||
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);
|
||||
DivePlotDataModel *dataModel;
|
||||
DiveCartesianAxis *hAxis;
|
||||
struct dive diveCylinderStore;
|
||||
struct plot_data *pInfoEntry;
|
||||
int pInfoNr;
|
||||
qreal height;
|
||||
|
|
Loading…
Add table
Reference in a new issue