mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
PropagateUpload: Remove unused PropagateUploadFileCommon::abort
This commit is contained in:
parent
e043840fd0
commit
96126a53d3
2 changed files with 0 additions and 14 deletions
|
@ -611,19 +611,6 @@ void PropagateUploadFileCommon::slotJobDestroyed(QObject *job)
|
||||||
_jobs.erase(std::remove(_jobs.begin(), _jobs.end(), job), _jobs.end());
|
_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
|
// 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)
|
void PropagateUploadFileCommon::abortWithError(SyncFileItem::Status status, const QString &error)
|
||||||
{
|
{
|
||||||
|
|
|
@ -270,7 +270,6 @@ public:
|
||||||
void abortWithError(SyncFileItem::Status status, const QString &error);
|
void abortWithError(SyncFileItem::Status status, const QString &error);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void abort(PropagatorJob::AbortType abortType) Q_DECL_OVERRIDE;
|
|
||||||
void slotJobDestroyed(QObject *job);
|
void slotJobDestroyed(QObject *job);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Reference in a new issue