Desktop: Remove Unused Class Members.

Remove unused class member variables in
`profile-widget/diveprofileitem`.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2023-06-11 13:04:59 +12:00 committed by bstoeger
parent 700bba7e30
commit a0cb6ad6d7
2 changed files with 1 additions and 6 deletions

View file

@ -100,8 +100,7 @@ void AbstractProfilePolygonItem::makePolygon(int fromIn, int toIn)
DiveProfileItem::DiveProfileItem(const plot_info &pInfo, const DiveCartesianAxis &hAxis, DiveProfileItem::DiveProfileItem(const plot_info &pInfo, const DiveCartesianAxis &hAxis,
const DiveCartesianAxis &vAxis, DataAccessor accessor, double dpr) : const DiveCartesianAxis &vAxis, DataAccessor accessor, double dpr) :
AbstractProfilePolygonItem(pInfo, hAxis, vAxis, accessor, dpr), AbstractProfilePolygonItem(pInfo, hAxis, vAxis, accessor, dpr)
show_reported_ceiling(0), reported_ceiling_in_red(0)
{ {
} }
@ -145,8 +144,6 @@ void DiveProfileItem::replot(const dive *d, int from, int to, bool in_planner)
if (polygon().isEmpty()) if (polygon().isEmpty())
return; return;
show_reported_ceiling = prefs.dcceiling;
reported_ceiling_in_red = prefs.redceiling;
profileColor = pInfo.waypoint_above_ceiling ? QColor(Qt::red) profileColor = pInfo.waypoint_above_ceiling ? QColor(Qt::red)
: getColor(DEPTH_BOTTOM); : getColor(DEPTH_BOTTOM);

View file

@ -59,8 +59,6 @@ public:
int maxCeiling(int row); int maxCeiling(int row);
private: private:
unsigned int show_reported_ceiling;
unsigned int reported_ceiling_in_red;
QColor profileColor; QColor profileColor;
}; };