remove unused and internal QProcessPrivate::waitForWrite()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-10-21 04:47:05 +03:00
parent 20b505d465
commit 3ab11e5ed5
2 changed files with 0 additions and 9 deletions

View file

@ -279,7 +279,6 @@ public:
bool waitForReadyRead(int msecs = 30000);
bool waitForBytesWritten(int msecs = 30000);
bool waitForFinished(int msecs = 30000);
bool waitForWrite(int msecs = 30000);
qint64 bytesAvailableFromStdout() const;
qint64 bytesAvailableFromStderr() const;

View file

@ -1067,14 +1067,6 @@ bool QProcessPrivate::waitForFinished(int msecs)
return false;
}
bool QProcessPrivate::waitForWrite(int msecs)
{
fd_set fdwrite;
FD_ZERO(&fdwrite);
FD_SET(stdinChannel.pipe[1], &fdwrite);
return select_msecs(stdinChannel.pipe[1] + 1, 0, &fdwrite, msecs < 0 ? 0 : msecs) == 1;
}
void QProcessPrivate::findExitCode()
{
Q_Q(QProcess);