Qbs: Remove QbsCleanStep::maxJobs

As suggested by the TODO comment.

Change-Id: I9d39245c17a1c488a1090f4ec031c091af067ed8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-01-17 17:19:54 +01:00
parent d1a0479c98
commit 8ec2eb87a4
2 changed files with 0 additions and 20 deletions

View File

@@ -124,12 +124,6 @@ bool QbsCleanStep::keepGoing() const
return m_qbsCleanOptions.keepGoing(); return m_qbsCleanOptions.keepGoing();
} }
int QbsCleanStep::maxJobs() const
{
return 1;
}
bool QbsCleanStep::fromMap(const QVariantMap &map) bool QbsCleanStep::fromMap(const QVariantMap &map)
{ {
if (!ProjectExplorer::BuildStep::fromMap(map)) if (!ProjectExplorer::BuildStep::fromMap(map))
@@ -204,12 +198,6 @@ void QbsCleanStep::setKeepGoing(bool kg)
emit changed(); emit changed();
} }
void QbsCleanStep::setMaxJobs(int jobcount)
{
Q_UNUSED(jobcount); // TODO: Remove all job count-related stuff.
emit changed();
}
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// QbsCleanStepConfigWidget: // QbsCleanStepConfigWidget:
@@ -263,11 +251,6 @@ void QbsCleanStepConfigWidget::changeKeepGoing(bool kg)
m_step->setKeepGoing(kg); m_step->setKeepGoing(kg);
} }
void QbsCleanStepConfigWidget::changeJobCount(int count)
{
m_step->setMaxJobs(count);
}
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// QbsCleanStepFactory: // QbsCleanStepFactory:
// -------------------------------------------------------------------- // --------------------------------------------------------------------

View File

@@ -58,7 +58,6 @@ public:
bool dryRun() const; bool dryRun() const;
bool keepGoing() const; bool keepGoing() const;
int maxJobs() const;
signals: signals:
void changed(); void changed();
@@ -73,7 +72,6 @@ private:
void setDryRun(bool dr); void setDryRun(bool dr);
void setKeepGoing(bool kg); void setKeepGoing(bool kg);
void setMaxJobs(int jobcount);
qbs::CleanOptions m_qbsCleanOptions; qbs::CleanOptions m_qbsCleanOptions;
QStringList m_products; QStringList m_products;
@@ -101,7 +99,6 @@ private:
void changeDryRun(bool dr); void changeDryRun(bool dr);
void changeKeepGoing(bool kg); void changeKeepGoing(bool kg);
void changeJobCount(int jobcount);
Ui::QbsCleanStepConfigWidget *m_ui; Ui::QbsCleanStepConfigWidget *m_ui;