From ea59e5cf7afd12f79a6ccce9071b8c470469fd0f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Oct 2021 21:57:23 +0200 Subject: [PATCH] profile: remove DiveCartesianAxis::gridColor member variable This was only used in the constructor to create the pen for the grid lines. Not need to keep it around. Signed-off-by: Berthold Stoeger --- profile-widget/divecartesianaxis.cpp | 1 - profile-widget/divecartesianaxis.h | 1 - 2 files changed, 2 deletions(-) diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index 74d654164..b38df49c9 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -24,7 +24,6 @@ DiveCartesianAxis::DiveCartesianAxis(Position position, int integralDigits, int printMode(printMode), position(position), fractionalDigits(fractionalDigits), - gridColor(gridColor), scene(scene), orientation(LeftToRight), min(0), diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index 1a7615b76..4d8530cae 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -57,7 +57,6 @@ private: int fractionalDigits; QRectF rect; // Rectangle to fill with grid lines QPen gridPen; - color_index_t gridColor; ProfileScene &scene; QString textForValue(double value) const; virtual QColor colorForValue(double value) const;