From a0cb6ad6d7c6df6907262a91238e047f65cb471a Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sun, 11 Jun 2023 13:04:59 +1200 Subject: [PATCH] Desktop: Remove Unused Class Members. Remove unused class member variables in `profile-widget/diveprofileitem`. Signed-off-by: Michael Keller --- profile-widget/diveprofileitem.cpp | 5 +---- profile-widget/diveprofileitem.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index fbdfc3d73..8129d1850 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -100,8 +100,7 @@ void AbstractProfilePolygonItem::makePolygon(int fromIn, int toIn) DiveProfileItem::DiveProfileItem(const plot_info &pInfo, const DiveCartesianAxis &hAxis, const DiveCartesianAxis &vAxis, DataAccessor accessor, double dpr) : - AbstractProfilePolygonItem(pInfo, hAxis, vAxis, accessor, dpr), - show_reported_ceiling(0), reported_ceiling_in_red(0) + AbstractProfilePolygonItem(pInfo, hAxis, vAxis, accessor, dpr) { } @@ -145,8 +144,6 @@ void DiveProfileItem::replot(const dive *d, int from, int to, bool in_planner) if (polygon().isEmpty()) return; - show_reported_ceiling = prefs.dcceiling; - reported_ceiling_in_red = prefs.redceiling; profileColor = pInfo.waypoint_above_ceiling ? QColor(Qt::red) : getColor(DEPTH_BOTTOM); diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index 99f8119f9..78e509bb4 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -59,8 +59,6 @@ public: int maxCeiling(int row); private: - unsigned int show_reported_ceiling; - unsigned int reported_ceiling_in_red; QColor profileColor; };