summaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-27 17:05:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-27 11:45:17 -0700
commit9485ace7098a7b76d9aee9d3eb1f5fc5becc2652 (patch)
tree4c9463235d8c80aa6d51266c2b2f93e346613c55 /profile-widget/tankitem.cpp
parent52cb38e5405bb402da45bdfcc5ba18d2225b0378 (diff)
downloadsubsurface-9485ace7098a7b76d9aee9d3eb1f5fc5becc2652.tar.gz
Cleanup: remove TankItem::diveCylinderStore
The last user of this member variable was removed in commit 96ed09bf145a5e108ca8098a1a5814784bcbebd2. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/tankitem.cpp')
-rw-r--r--profile-widget/tankitem.cpp9
1 files changed, 0 insertions, 9 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();