Mobile: remove DiveObjectHelper::getDive()

Don't provide access to the raw dive in DiveObjectHelper. All users
now access the core directly. This is a step in making DiveObjectHelper
value-based.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-08-13 21:38:44 +02:00 committed by bstoeger
parent 20e847f9d8
commit 1a6c1b275d
2 changed files with 0 additions and 6 deletions

View file

@ -87,11 +87,6 @@ int DiveObjectHelper::id() const
return m_dive->id;
}
struct dive *DiveObjectHelper::getDive() const
{
return m_dive;
}
QString DiveObjectHelper::date() const
{
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);

View file

@ -54,7 +54,6 @@ public:
bool operator!() const; // Returns true if this is an invalid default-generated object
int number() const;
int id() const;
struct dive *getDive() const;
int rating() const;
int visibility() const;
QString date() const;