summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-13 22:07:40 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commitfcacfd7ce6135e943a747d44c6f9de05e76b4ade (patch)
treed5cc2bc553e6679dcc8b2d44d5fb59745cc21f36 /core/subsurface-qt/DiveObjectHelper.cpp
parent461c610a3d6b8f6704ecd30249291b32350f399f (diff)
downloadsubsurface-fcacfd7ce6135e943a747d44c6f9de05e76b4ade.tar.gz
Cleanup: remove unused function DiveObjectHelper::weight(int)
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp7
1 files changed, 0 insertions, 7 deletions
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();