cleanup: remove dive parameter from DivePlotDataModel::setDive()

This was not used, probably an artifact from days long gone.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-11 16:17:34 +01:00 committed by Dirk Hohndel
parent 5ddb5ada27
commit 5e1dcb0655
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;