forked from qt-creator/qt-creator
ProjectExplorer: Clean up IOutputParser interface
- Remove unneeded/unused functions. - De-virtualize where possible. In particular, after untangling a number of self-referential redirections, it became apparent that the outputAdded() infrastructure was entirely unused. Change-Id: I51e1beed008df2727b42494b087efa476342397e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -179,10 +179,6 @@ bool QbsBuildStep::init()
|
||||
m_activeFileTags = bc->activeFileTags();
|
||||
m_products = bc->products();
|
||||
|
||||
connect(m_parser, &ProjectExplorer::IOutputParser::addOutput,
|
||||
this, [this](const QString &string, ProjectExplorer::BuildStep::OutputFormat format) {
|
||||
emit addOutput(string, format);
|
||||
});
|
||||
connect(m_parser, &ProjectExplorer::IOutputParser::addTask, this, &QbsBuildStep::addTask);
|
||||
|
||||
return true;
|
||||
@@ -383,7 +379,7 @@ void QbsBuildStep::handleProcessResult(
|
||||
if (success && !hasOutput)
|
||||
return;
|
||||
|
||||
m_parser->setWorkingDirectory(workingDir.toString());
|
||||
m_parser->setWorkingDirectory(workingDir);
|
||||
emit addOutput(executable.toUserOutput() + ' ' + QtcProcess::joinArgs(arguments),
|
||||
OutputFormat::Stdout);
|
||||
for (const QString &line : stdErr) {
|
||||
|
||||
Reference in New Issue
Block a user