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>
This commit is contained in:
Berthold Stoeger 2019-08-13 21:41:46 +02:00 committed by bstoeger
parent 1a6c1b275d
commit 461c610a3d
2 changed files with 0 additions and 12 deletions

View file

@ -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;