diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index 2d17153e2..7a0d383a1 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -39,56 +39,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 @@ -179,7 +129,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; diff --git a/src/gui/syncrunfilelog.h b/src/gui/syncrunfilelog.h index 9d325763c..ac618a011 100644 --- a/src/gui/syncrunfilelog.h +++ b/src/gui/syncrunfilelog.h @@ -43,7 +43,6 @@ public: protected: private: QString dateTimeStr(const QDateTime &dt); - QString instructionToStr(SyncInstructions inst); QString directionToStr(SyncFileItem::Direction dir); QScopedPointer _file;