From a004c95e52bc1f9414d0fbe09a62b527230f95f7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 22 Sep 2019 13:51:16 +0200 Subject: [PATCH] Cleanup: remove GpsLocation::hasInstance() This function was not used anywhere. Signed-off-by: Berthold Stoeger --- core/gpslocation.cpp | 5 ----- core/gpslocation.h | 1 - 2 files changed, 6 deletions(-) diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp index c5b81e024..faed55ad7 100644 --- a/core/gpslocation.cpp +++ b/core/gpslocation.cpp @@ -44,11 +44,6 @@ GpsLocation *GpsLocation::instance() return m_Instance; } -bool GpsLocation::hasInstance() -{ - return m_Instance != NULL; -} - GpsLocation::~GpsLocation() { m_Instance = NULL; diff --git a/core/gpslocation.h b/core/gpslocation.h index 02377bfca..f328c5616 100644 --- a/core/gpslocation.h +++ b/core/gpslocation.h @@ -26,7 +26,6 @@ public: GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent); ~GpsLocation(); static GpsLocation *instance(); - static bool hasInstance(); bool applyLocations(); int getGpsNum() const; bool hasLocationsSource();