From 1a6c1b275da18aec2fbf9bbc574aa6b9f13b7c46 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Aug 2019 21:38:44 +0200 Subject: [PATCH] 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 --- core/subsurface-qt/DiveObjectHelper.cpp | 5 ----- core/subsurface-qt/DiveObjectHelper.h | 1 - 2 files changed, 6 deletions(-) diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index cb6cf6dd1..de0c8bba9 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -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); diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index 674386e56..c7401d05a 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -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;