diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp index 5c8da350c..67262b676 100644 --- a/src/libsync/propagateupload.cpp +++ b/src/libsync/propagateupload.cpp @@ -611,19 +611,6 @@ void PropagateUploadFileCommon::slotJobDestroyed(QObject *job) _jobs.erase(std::remove(_jobs.begin(), _jobs.end(), job), _jobs.end()); } -void PropagateUploadFileCommon::abort(PropagatorJob::AbortType abortType) -{ - foreach (auto *job, _jobs) { - if (job->reply()) { - job->reply()->abort(); - } - } - - if (abortType == AbortType::Asynchronous) { - emit abortFinished(); - } -} - // This function is used whenever there is an error occuring and jobs might be in progress void PropagateUploadFileCommon::abortWithError(SyncFileItem::Status status, const QString &error) { diff --git a/src/libsync/propagateupload.h b/src/libsync/propagateupload.h index 924f82474..1eebe99c5 100644 --- a/src/libsync/propagateupload.h +++ b/src/libsync/propagateupload.h @@ -270,7 +270,6 @@ public: void abortWithError(SyncFileItem::Status status, const QString &error); public slots: - void abort(PropagatorJob::AbortType abortType) Q_DECL_OVERRIDE; void slotJobDestroyed(QObject *job); private slots: