mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
20e847f9d8
commit
1a6c1b275d
2 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue