From fcacfd7ce6135e943a747d44c6f9de05e76b4ade Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Aug 2019 22:07:40 +0200 Subject: Cleanup: remove unused function DiveObjectHelper::weight(int) Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveObjectHelper.cpp | 7 ------- core/subsurface-qt/DiveObjectHelper.h | 1 - 2 files changed, 8 deletions(-) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index 5b4fb72b3..9bb356d38 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -249,13 +249,6 @@ bool DiveObjectHelper::singleWeight() const return m_dive->weightsystems.nr <= 1; } -QString DiveObjectHelper::weight(int idx) const -{ - if ((idx < 0) || idx >= m_dive->weightsystems.nr) - return QString(); - return getFormattedWeight(m_dive, idx); -} - QString DiveObjectHelper::suit() const { return m_dive->suit ? m_dive->suit : QString(); diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index 63ab2ff04..fe6539caf 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -74,7 +74,6 @@ public: QString sac() const; QString weightList() const; QStringList weights() const; - QString weight(int idx) const; bool singleWeight() const; QString suit() const; QStringList cylinderList() const; -- cgit v1.2.3-70-g09d2