mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
5ddb5ada27
commit
5e1dcb0655
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue