QProcess/Unix: remove dead function

findExitCode() doesn't do anything on Unix.

Change-Id: I3efdc1380a39437c4c029073f3b10ccf7a65e580
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Alex Trotsenko 2021-01-28 20:47:50 +02:00
parent f2c3b52c6c
commit f9896cb3cd
3 changed files with 4 additions and 10 deletions

View File

@ -1152,8 +1152,9 @@ void QProcessPrivate::processFinished()
#ifdef Q_OS_UNIX
waitForDeadChild();
#endif
#else
findExitCode();
#endif
cleanup();
@ -1196,7 +1197,6 @@ bool QProcessPrivate::_q_startupNotification()
setErrorAndEmit(QProcess::FailedToStart, errorMessage);
#ifdef Q_OS_UNIX
waitForDeadChild();
findExitCode();
#endif
cleanup();
return false;
@ -1245,9 +1245,6 @@ QProcess::~QProcess()
kill();
waitForFinished();
}
#ifdef Q_OS_UNIX
d->findExitCode();
#endif
d->cleanup();
}

View File

@ -356,9 +356,10 @@ public:
void processFinished();
void terminateProcess();
void killProcess();
void findExitCode();
#ifdef Q_OS_UNIX
void waitForDeadChild();
#else
void findExitCode();
#endif
#ifdef Q_OS_WIN
STARTUPINFOW createStartupInfo();

View File

@ -853,10 +853,6 @@ bool QProcessPrivate::waitForFinished(const QDeadlineTimer &deadline)
return false;
}
void QProcessPrivate::findExitCode()
{
}
void QProcessPrivate::waitForDeadChild()
{
Q_ASSERT(forkfd != -1);