Inline RunControl::canReUseOutputPane into its only caller

Change-Id: I2e858ab3bf715b41c26cfb6246d470787d003e3c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2018-05-29 14:23:07 +02:00
parent bb28b10add
commit 772098c710
3 changed files with 9 additions and 14 deletions

View File

@@ -1445,17 +1445,6 @@ Project *RunControl::project() const
return d->project.data();
}
bool RunControl::canReUseOutputPane(const RunControl *other) const
{
if (!other || other->isRunning())
return false;
return d->runnable.executable == other->d->runnable.executable
&& d->runnable.commandLineArguments == other->d->runnable.commandLineArguments
&& d->runnable.workingDirectory == other->d->runnable.workingDirectory
&& d->runnable.environment == other->d->runnable.environment;
}
/*!
A handle to the application process.