aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile-widget/tankitem.cpp9
-rw-r--r--profile-widget/tankitem.h2
2 files changed, 0 insertions, 11 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp
index 2e2de6139..dfb1f4906 100644
--- a/profile-widget/tankitem.cpp
+++ b/profile-widget/tankitem.cpp
@@ -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();
diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h
index 433b1444f..cd77b6955 100644
--- a/profile-widget/tankitem.h
+++ b/profile-widget/tankitem.h
@@ -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;