forked from qt-creator/qt-creator
AbstractProcessStep: Get rid of done hook
Not needed anymore. Remove emitting 100% progress on finish of CMakeInstallStep, as that's done automatically by the task tree. Task-number: QTCREATORBUG-29168 Change-Id: If93d989eeb0a551f00754c5d6ef7f180fdbabdd5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -82,7 +82,6 @@ public:
|
||||
std::function<CommandLine()> m_commandLineProvider;
|
||||
std::function<FilePath()> m_workingDirectoryProvider;
|
||||
std::function<void(Environment &)> m_environmentModifier;
|
||||
std::function<void(bool)> m_doneHook; // TODO: Remove me when all subclasses moved to Tasking
|
||||
bool m_ignoreReturnValue = false;
|
||||
bool m_lowPriority = false;
|
||||
std::unique_ptr<QTextDecoder> stdoutStream;
|
||||
@@ -132,11 +131,6 @@ void AbstractProcessStep::setUseEnglishOutput()
|
||||
d->m_environmentModifier = [](Environment &env) { env.setupEnglishOutput(); };
|
||||
}
|
||||
|
||||
void AbstractProcessStep::setDoneHook(const std::function<void(bool)> &doneHook)
|
||||
{
|
||||
d->m_doneHook = doneHook;
|
||||
}
|
||||
|
||||
void AbstractProcessStep::setCommandLineProvider(const std::function<CommandLine()> &provider)
|
||||
{
|
||||
d->m_commandLineProvider = provider;
|
||||
@@ -362,8 +356,6 @@ void AbstractProcessStep::finish(ProcessResult result)
|
||||
{
|
||||
const bool success = result == ProcessResult::FinishedWithSuccess
|
||||
|| (result == ProcessResult::FinishedWithError && d->m_ignoreReturnValue);
|
||||
if (d->m_doneHook)
|
||||
d->m_doneHook(success);
|
||||
emit finished(success);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user