summaryrefslogtreecommitdiffstats
path: root/profile-widget/divecartesianaxis.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-05-20 09:22:37 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commita88c9507387452a3152aa21f8766a568c1542b86 (patch)
tree9ae47f91d595089667b49584a80c5c0f5471d156 /profile-widget/divecartesianaxis.cpp
parentd0ff3917b1ec4982f5a62843776f241ae3711d7d (diff)
downloadsubsurface-a88c9507387452a3152aa21f8766a568c1542b86.tar.gz
Unused code: DiveCartesianAxis::percentAt()
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'profile-widget/divecartesianaxis.cpp')
-rw-r--r--profile-widget/divecartesianaxis.cpp8
1 files changed, 0 insertions, 8 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;