diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-04-23 11:25:03 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-04-23 12:52:05 +0300 |
commit | 3305e9a90c015537cbdc88011dc50c765e3b4259 (patch) | |
tree | 81260801e138dcc1c29d8256d9f587fec03e7379 /src/gui/syncrunfilelog.cpp | |
parent | ae53496ddf417c5fd37b8a4b2eb246b0b95bc492 (diff) |
Remvoe now unneeded SyncRunFileLog::instructionToStr
Diffstat (limited to 'src/gui/syncrunfilelog.cpp')
-rw-r--r-- | src/gui/syncrunfilelog.cpp | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index f63a220c4..fe296bd75 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -41,56 +41,6 @@ QString SyncRunFileLog::directionToStr(SyncFileItem::Direction dir) return re; } -QString SyncRunFileLog::instructionToStr(SyncInstructions inst) -{ - QString re; - - switch (inst) { - case CSYNC_INSTRUCTION_NONE: - re = "INST_NONE"; - break; - case CSYNC_INSTRUCTION_EVAL: - re = "INST_EVAL"; - break; - case CSYNC_INSTRUCTION_REMOVE: - re = "INST_REMOVE"; - break; - case CSYNC_INSTRUCTION_RENAME: - re = "INST_RENAME"; - break; - case CSYNC_INSTRUCTION_EVAL_RENAME: - re = "INST_EVAL_RENAME"; - break; - case CSYNC_INSTRUCTION_NEW: - re = "INST_NEW"; - break; - case CSYNC_INSTRUCTION_CONFLICT: - re = "INST_CONFLICT"; - break; - case CSYNC_INSTRUCTION_IGNORE: - re = "INST_IGNORE"; - break; - case CSYNC_INSTRUCTION_SYNC: - re = "INST_SYNC"; - break; - case CSYNC_INSTRUCTION_STAT_ERROR: - re = "INST_STAT_ERR"; - break; - case CSYNC_INSTRUCTION_ERROR: - re = "INST_ERROR"; - break; - case CSYNC_INSTRUCTION_TYPE_CHANGE: - re = "INST_TYPE_CHANGE"; - break; - case CSYNC_INSTRUCTION_UPDATE_METADATA: - re = "INST_METADATA"; - break; - } - - return re; -} - - void SyncRunFileLog::start(const QString &folderPath) { const qint64 logfileMaxSize = 10 * 1024 * 1024; // 10MiB @@ -152,7 +102,7 @@ void SyncRunFileLog::logItem(const SyncFileItem &item) } else { _out << item._file << QLatin1String(" -> ") << item._renameTarget << L; } - _out << instructionToStr(item._instruction) << L; + _out << item._instruction << L; _out << directionToStr(item._direction) << L; _out << QString::number(item._modtime) << L; _out << item._etag << L; |