From 5e1dcb0655fd6daa7914a78a83c5419bfbc93457 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 11 Jan 2021 16:17:34 +0100 Subject: cleanup: remove dive parameter from DivePlotDataModel::setDive() This was not used, probably an artifact from days long gone. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 2 +- qt-models/diveplotdatamodel.cpp | 2 +- qt-models/diveplotdatamodel.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index e8a447084..128793fd9 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -623,7 +623,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict maxdepth = newMaxDepth; } - dataModel->setDive(&displayed_dive, plotInfo); + dataModel->setDive(plotInfo); #ifndef SUBSURFACE_MOBILE toolTipItem->setPlotInfo(plotInfo); #endif diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp index 954efc652..38b99c45c 100644 --- a/qt-models/diveplotdatamodel.cpp +++ b/qt-models/diveplotdatamodel.cpp @@ -180,7 +180,7 @@ void DivePlotDataModel::clear() } } -void DivePlotDataModel::setDive(dive *d, const plot_info &info) +void DivePlotDataModel::setDive(const plot_info &info) { beginResetModel(); dcNr = dc_number; diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h index 110cff5fc..a1031988f 100644 --- a/qt-models/diveplotdatamodel.h +++ b/qt-models/diveplotdatamodel.h @@ -79,7 +79,7 @@ public: QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; void clear(); - void setDive(struct dive *d, const plot_info &pInfo); + void setDive(const plot_info &pInfo); const plot_info &data() const; unsigned int dcShown() const; double pheMax() const; -- cgit v1.2.3-70-g09d2