From f9896cb3cdb884fbd98b0c60f55133b2e6c581d3 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Thu, 28 Jan 2021 20:47:50 +0200 Subject: QProcess/Unix: remove dead function findExitCode() doesn't do anything on Unix. Change-Id: I3efdc1380a39437c4c029073f3b10ccf7a65e580 Reviewed-by: Oswald Buddenhagen Reviewed-by: Thiago Macieira --- src/corelib/io/qprocess.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/corelib/io/qprocess.cpp') diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index 8b26e845a8..2462d829a0 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -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(); } -- cgit v1.2.3