diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-27 17:05:34 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-27 11:45:17 -0700 |
commit | 9485ace7098a7b76d9aee9d3eb1f5fc5becc2652 (patch) | |
tree | 4c9463235d8c80aa6d51266c2b2f93e346613c55 | |
parent | 52cb38e5405bb402da45bdfcc5ba18d2225b0378 (diff) | |
download | subsurface-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>
-rw-r--r-- | profile-widget/tankitem.cpp | 9 | ||||
-rw-r--r-- | profile-widget/tankitem.h | 2 |
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; |