PropagateUpload: Remove unused PropagateUploadFileCommon::abort

This commit is contained in:
Christian Kamm 2018-05-14 11:15:19 +02:00 committed by Roeland Jago Douma
parent e043840fd0
commit 96126a53d3
No known key found for this signature in database
GPG key ID: F941078878347C0C
2 changed files with 0 additions and 14 deletions

View file

@ -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)
{

View file

@ -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: