summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/settings/qPref.cpp11
-rw-r--r--core/settings/qPref.h6
-rw-r--r--tests/tst_qPref.qml12
3 files changed, 0 insertions, 29 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);
};
diff --git a/tests/tst_qPref.qml b/tests/tst_qPref.qml
deleted file mode 100644
index ed96ada3a..000000000
--- a/tests/tst_qPref.qml
+++ /dev/null
@@ -1,12 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-import QtQuick 2.6
-import QtTest 1.2
-
-TestCase {
- name: "qPref"
-
- function test_register() {
- var x = Pref.mobile_version
- compare(x, Pref.mobile_version)
- }
-}