diff options
-rw-r--r-- | profile-widget/divecartesianaxis.cpp | 8 | ||||
-rw-r--r-- | profile-widget/divecartesianaxis.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index 75372c369..60c1f1365 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -324,14 +324,6 @@ qreal DiveCartesianAxis::posAtValue(qreal value) return adjusted; } -qreal DiveCartesianAxis::percentAt(const QPointF &p) -{ - qreal value = valueAt(p); - double size = max - min; - double percent = value / size; - return percent; -} - double DiveCartesianAxis::maximum() const { return max; diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index e6f3440d8..835567411 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -41,7 +41,6 @@ public: double maximum() const; double fontLabelScale() const; qreal valueAt(const QPointF &p) const; - qreal percentAt(const QPointF &p); qreal posAtValue(qreal value); void setColor(const QColor &color); void setTextColor(const QColor &color); |