diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-05-20 09:22:37 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-10 16:45:42 +0100 |
commit | a88c9507387452a3152aa21f8766a568c1542b86 (patch) | |
tree | 9ae47f91d595089667b49584a80c5c0f5471d156 /profile-widget/divecartesianaxis.cpp | |
parent | d0ff3917b1ec4982f5a62843776f241ae3711d7d (diff) | |
download | subsurface-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.cpp | 8 |
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; |