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;

View file

@ -50,8 +50,6 @@ class DiveObjectHelper {
public:
DiveObjectHelper(); // This is only to be used by Qt's metatype system!
DiveObjectHelper(struct dive *dive);
operator bool() const; // Returns false if this is an invalid default-generated object
bool operator!() const; // Returns true if this is an invalid default-generated object
int number() const;
int id() const;
int rating() const;