Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-04-23 11:28:07 +0300
committerHannah von Reth <vonreth@kde.org>2020-04-23 12:52:05 +0300
commitcc8553a3b70345003213a9cb84b280a3f088c567 (patch)
treeaf9b1f8020bc64dad792dd085ac8ed6702db1f89 /src/gui/syncrunfilelog.cpp
parent3305e9a90c015537cbdc88011dc50c765e3b4259 (diff)
Remvoe now unneeded SyncRunFileLog::directionToStr
Diffstat (limited to 'src/gui/syncrunfilelog.cpp')
-rw-r--r--src/gui/syncrunfilelog.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp
index fe296bd75..91cf61da2 100644
--- a/src/gui/syncrunfilelog.cpp
+++ b/src/gui/syncrunfilelog.cpp
@@ -30,17 +30,6 @@ QString SyncRunFileLog::dateTimeStr(const QDateTime &dt)
return dt.toString(Qt::ISODate);
}
-QString SyncRunFileLog::directionToStr(SyncFileItem::Direction dir)
-{
- QString re("N");
- if (dir == SyncFileItem::Up) {
- re = QLatin1String("Up");
- } else if (dir == SyncFileItem::Down) {
- re = QLatin1String("Down");
- }
- return re;
-}
-
void SyncRunFileLog::start(const QString &folderPath)
{
const qint64 logfileMaxSize = 10 * 1024 * 1024; // 10MiB
@@ -103,7 +92,7 @@ void SyncRunFileLog::logItem(const SyncFileItem &item)
_out << item._file << QLatin1String(" -> ") << item._renameTarget << L;
}
_out << item._instruction << L;
- _out << directionToStr(item._direction) << L;
+ _out << item._direction << L;
_out << QString::number(item._modtime) << L;
_out << item._etag << L;
_out << QString::number(item._size) << L;