summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-13 21:41:46 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commit461c610a3d6b8f6704ecd30249291b32350f399f (patch)
tree5ad41308c108f4fb13c070d4606feba2a23c6a2e /core/subsurface-qt/DiveObjectHelper.cpp
parent1a6c1b275da18aec2fbf9bbc574aa6b9f13b7c46 (diff)
downloadsubsurface-461c610a3d6b8f6704ecd30249291b32350f399f.tar.gz
Mobile: remove DiveObjectHelper to bool casts
These were temporary functions as long as DiveObjectHelpers were used to access dives. All users now access the core directly and therefore don't have to test DiveObjectHelpers for validity. 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.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index de0c8bba9..5b4fb72b3 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -67,16 +67,6 @@ DiveObjectHelper::DiveObjectHelper(struct dive *d) :
{
}
-DiveObjectHelper::operator bool() const
-{
- return !!m_dive;
-}
-
-bool DiveObjectHelper::operator!() const
-{
- return !m_dive;
-}
-
int DiveObjectHelper::number() const
{
return m_dive->number;