QProcess: Remove dead code
These functions appear to have been dead code always - even in the earliest Qt4 releases! Change-Id: Ie2a458092b45113782284cf8ed3aa11a018b60d4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3b73ee0fb5
commit
58bd015ddf
@ -381,7 +381,6 @@ public:
|
|||||||
bool waitForReadyRead(int msecs = 30000);
|
bool waitForReadyRead(int msecs = 30000);
|
||||||
bool waitForBytesWritten(int msecs = 30000);
|
bool waitForBytesWritten(int msecs = 30000);
|
||||||
bool waitForFinished(int msecs = 30000);
|
bool waitForFinished(int msecs = 30000);
|
||||||
bool waitForWrite(int msecs = 30000);
|
|
||||||
|
|
||||||
qint64 bytesAvailableInChannel(const Channel *channel) const;
|
qint64 bytesAvailableInChannel(const Channel *channel) const;
|
||||||
qint64 readFromChannel(const Channel *channel, char *data, qint64 maxlen);
|
qint64 readFromChannel(const Channel *channel, char *data, qint64 maxlen);
|
||||||
|
@ -1034,12 +1034,6 @@ bool QProcessPrivate::waitForFinished(int msecs)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QProcessPrivate::waitForWrite(int msecs)
|
|
||||||
{
|
|
||||||
pollfd pfd = qt_make_pollfd(stdinChannel.pipe[1], POLLOUT);
|
|
||||||
return qt_poll_msecs(&pfd, 1, msecs < 0 ? 0 : msecs) == 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QProcessPrivate::findExitCode()
|
void QProcessPrivate::findExitCode()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -819,15 +819,6 @@ qint64 QProcessPrivate::writeToStdin(const char *data, qint64 maxlen)
|
|||||||
return stdinChannel.writer->write(data, maxlen);
|
return stdinChannel.writer->write(data, maxlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QProcessPrivate::waitForWrite(int msecs)
|
|
||||||
{
|
|
||||||
if (!stdinChannel.writer || stdinChannel.writer->waitForWrite(msecs))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
setError(QProcess::Timedout);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool QProcessPrivate::startDetached(const QString &program, const QStringList &arguments, const QString &workingDir, qint64 *pid)
|
bool QProcessPrivate::startDetached(const QString &program, const QStringList &arguments, const QString &workingDir, qint64 *pid)
|
||||||
{
|
{
|
||||||
QString args = qt_create_commandline(program, arguments);
|
QString args = qt_create_commandline(program, arguments);
|
||||||
|
@ -278,12 +278,6 @@ qint64 QProcessPrivate::writeToStdin(const char *data, qint64 maxlen)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QProcessPrivate::waitForWrite(int msecs)
|
|
||||||
{
|
|
||||||
Q_UNUSED(msecs);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool QProcessPrivate::startDetached(const QString &program, const QStringList &arguments, const QString &workingDir, qint64 *pid)
|
bool QProcessPrivate::startDetached(const QString &program, const QStringList &arguments, const QString &workingDir, qint64 *pid)
|
||||||
{
|
{
|
||||||
Q_UNUSED(workingDir);
|
Q_UNUSED(workingDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user