From 9485ace7098a7b76d9aee9d3eb1f5fc5becc2652 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 27 Jul 2019 17:05:34 +0200 Subject: Cleanup: remove TankItem::diveCylinderStore The last user of this member variable was removed in commit 96ed09bf145a5e108ca8098a1a5814784bcbebd2. Signed-off-by: Berthold Stoeger --- profile-widget/tankitem.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'profile-widget/tankitem.cpp') 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(); -- cgit v1.2.3-70-g09d2