forked from qt-creator/qt-creator
Utils: Remove couple of functions from QtcProcess
Some functions do not work and should therefore not be used. Line-based processing of the output interferes with the internal automatic usage of the ChannelBuffers. Remove the respective functions and move the line parsing over to the client. Change-Id: Iaaa58c181e35e132fae863ddb808547142c99221 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -700,16 +700,6 @@ QByteArray QtcProcess::readAllStandardError()
|
||||
return buf;
|
||||
}
|
||||
|
||||
QByteArray QtcProcess::readAll()
|
||||
{
|
||||
return d->m_process->readAll();
|
||||
}
|
||||
|
||||
QByteArray QtcProcess::readLine()
|
||||
{
|
||||
return d->m_process->readLine();
|
||||
}
|
||||
|
||||
QProcess::ExitStatus QtcProcess::exitStatus() const
|
||||
{
|
||||
return d->m_process->exitStatus();
|
||||
@@ -735,16 +725,6 @@ void QtcProcess::close()
|
||||
d->m_process->close();
|
||||
}
|
||||
|
||||
void QtcProcess::setReadChannel(QProcess::ProcessChannel channel)
|
||||
{
|
||||
d->m_process->setReadChannel(channel);
|
||||
}
|
||||
|
||||
bool QtcProcess::canReadLine() const
|
||||
{
|
||||
return d->m_process->canReadLine();
|
||||
}
|
||||
|
||||
QString QtcProcess::locateBinary(const QString &binary)
|
||||
{
|
||||
const QByteArray path = qgetenv("PATH");
|
||||
|
||||
Reference in New Issue
Block a user