mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove unused argument and private member
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5dd3d1897f
commit
cbad9607e8
3 changed files with 4 additions and 5 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
#include <array>
|
||||
|
||||
DivePercentageItem::DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis, double dpr) :
|
||||
hAxis(hAxis), vAxis(vAxis), dpr(dpr)
|
||||
DivePercentageItem::DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis) :
|
||||
hAxis(hAxis), vAxis(vAxis)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -10,12 +10,11 @@ class DiveCartesianAxis;
|
|||
|
||||
class DivePercentageItem : public QGraphicsPixmapItem {
|
||||
public:
|
||||
DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis, double dpr);
|
||||
DivePercentageItem(const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis);
|
||||
void replot(const dive *d, const divecomputer *dc, const plot_info &pi);
|
||||
private:
|
||||
const DiveCartesianAxis &hAxis;
|
||||
const DiveCartesianAxis &vAxis;
|
||||
double dpr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -144,7 +144,7 @@ ProfileScene::ProfileScene(double dpr, bool printMode, bool isGrayscale) :
|
|||
heartBeatItem(createItem<DiveHeartrateItem>(*heartBeatAxis,
|
||||
[](const plot_data &item) { return (double)item.heartbeat; },
|
||||
1, dpr)),
|
||||
percentageItem(new DivePercentageItem(*timeAxis, *percentageAxis, dpr)),
|
||||
percentageItem(new DivePercentageItem(*timeAxis, *percentageAxis)),
|
||||
tankItem(new TankItem(*timeAxis, dpr)),
|
||||
pixmaps(getDivePixmaps(dpr))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue