diff --git a/GUI/Model/Tune/JobsSet.cpp b/GUI/Model/Tune/JobsSet.cpp index 0782fbd6607a342a43f3599ee8d56891de0b5abc..fc056e0dde26c70b8c6ba999de4d18760f58eacf 100644 --- a/GUI/Model/Tune/JobsSet.cpp +++ b/GUI/Model/Tune/JobsSet.cpp @@ -61,7 +61,7 @@ void JobsSet::writeTo(QXmlStreamWriter* w) const void JobsSet::readFrom(QXmlStreamReader* r) { - clear(); + ASSERT(m_job_items.empty()); const uint version = XML::readUIntAttribute(r, XML::Attrib::version); Q_UNUSED(version) @@ -135,12 +135,6 @@ void JobsSet::restoreBackupPars(JobItem* job_item, int index) job_item->parameterContainerItem()->restoreBackupValues(index); } -void JobsSet::clear() -{ - for (auto* job : jobItems()) - removeJob(job); -} - QVector<DataItem*> JobsSet::dataItems() const { QVector<DataItem*> result; diff --git a/GUI/Model/Tune/JobsSet.h b/GUI/Model/Tune/JobsSet.h index 10d64e3c2a023c01b265fbf67c300a50f442e21a..b94fc9940d4fcdd0c6a8b67eb4847f63685ecb8e 100644 --- a/GUI/Model/Tune/JobsSet.h +++ b/GUI/Model/Tune/JobsSet.h @@ -55,7 +55,6 @@ public: bool hasUnfinishedJobs(); - void clear(); QVector<DataItem*> dataItems() const; void runJob(JobItem* job_item);