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