Utils: Remove SynchronousProcess::readDataFromProcess helper

QtcProcess can do that nowadays.

Change-Id: Ic3b08146263da2eb189f043eb743c621c18b82c8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-05-04 07:49:33 +02:00
parent 9c3420120e
commit e10b5a4dbb
3 changed files with 5 additions and 54 deletions

View File

@@ -1324,6 +1324,11 @@ static bool askToKill(const QString &command)
#endif
}
// Helper for running a process synchronously in the foreground with timeout
// detection similar SynchronousProcess' handling (taking effect after no more output
// occurs on stderr/stdout as opposed to waitForFinished()). Returns false if a timeout
// occurs. Checking of the process' exit state/code still has to be done.
bool QtcProcess::readDataFromProcess(int timeoutS,
QByteArray *stdOut,
QByteArray *stdErr,