summaryrefslogtreecommitdiffstats
path: root/core/settings
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-03 23:19:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-04 09:29:45 -0700
commit2ead52b1398aef218c18d056c5a4da6b1d686ca5 (patch)
treed9450a3d8337e229888ace4f92ec922731705ffb /core/settings
parentd45f67c84d0eaceb0ac8ebd0e270a6206f75bc29 (diff)
downloadsubsurface-2ead52b1398aef218c18d056c5a4da6b1d686ca5.tar.gz
Cleanup: remove qPref::canonical_version() and qPref::mobile_version()
These two member functions were never used, but cause frequent recompilation of the qPref.cpp file. Remove them for now until their usefulness becomes evident. These were the only functions tested in test_qPref.qml. Therefore remove this test-file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/settings')
-rw-r--r--core/settings/qPref.cpp11
-rw-r--r--core/settings/qPref.h6
2 files changed, 0 insertions, 17 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index aded20e11..04a2615d3 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -14,7 +14,6 @@
#include "qPrefTechnicalDetails.h"
#include "qPrefUnit.h"
#include "qPrefUpdateManager.h"
-#include "ssrf-version.h"
#include <QtQml>
#include <QQmlContext>
@@ -29,16 +28,6 @@ qPref *qPref::instance()
return self;
}
-const QString qPref::canonical_version()
-{
- return QString(CANONICAL_VERSION_STRING);
-}
-
-const QString qPref::mobile_version()
-{
- return QString(MOBILE_VERSION_STRING);
-}
-
void qPref::loadSync(bool doSync)
{
if (!doSync)
diff --git a/core/settings/qPref.h b/core/settings/qPref.h
index 2c95a1500..2fee5e29a 100644
--- a/core/settings/qPref.h
+++ b/core/settings/qPref.h
@@ -8,8 +8,6 @@
class qPref : public QObject {
Q_OBJECT
- Q_PROPERTY(QString canonical_version READ canonical_version);
- Q_PROPERTY(QString mobile_version READ mobile_version);
public:
qPref(QObject *parent = NULL);
@@ -22,10 +20,6 @@ public:
// Register QML
void registerQML(QQmlEngine *engine);
-public:
- static const QString canonical_version();
- static const QString mobile_version();
-
private:
static void loadSync(bool doSync);
};