summaryrefslogtreecommitdiff
path: root/daemon/logger.cpp
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-07-23 00:28:58 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-07-23 00:37:48 +0100
commit3ccc7bf59b1547d6250cdfaa1fce63828869c854 (patch)
tree9ea88eac750d32e374864ab2507c949a226db6cd /daemon/logger.cpp
parent83b19141c731aa035891433e2e4d72ec303ca7df (diff)
Moved setupFilePath to common from logger
This function may need to be used from qml
Diffstat (limited to 'daemon/logger.cpp')
-rw-r--r--daemon/logger.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/daemon/logger.cpp b/daemon/logger.cpp
index 7e06c63..3cadf2c 100644
--- a/daemon/logger.cpp
+++ b/daemon/logger.cpp
@@ -14,7 +14,6 @@
#include <QDBusConnection>
#include <QDateTime>
#include <QFile>
-#include <QDir>
#include <QTextStream>
#include <QTimer>
#include <QDebug>
@@ -135,9 +134,5 @@ QStringList fileGetPrevRecord(QString sensorPrefix, QDateTime recordTime) {
return line.split(":");
}
-void setupFilePath(QString sensorPrefix) {
- QSettings settings("asteroid","sensorlogd"); //this should be moved out of here at some point TODO
- QDir::root().mkpath(settings.value("loggerRootPath",QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/.asteroid-sensorlogd/").toString() + sensorPrefix);
-}