diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-01-28 20:47:50 +0200 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2021-01-29 12:55:42 +0200 |
commit | f9896cb3cdb884fbd98b0c60f55133b2e6c581d3 (patch) | |
tree | d280ff369ca88f80ba9ce5ce11f5fb7c2c214da5 /src/corelib/io/qprocess.cpp | |
parent | f2c3b52c6c513ebba9dc0db69efe8bdbf6be8334 (diff) |
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>
Diffstat (limited to 'src/corelib/io/qprocess.cpp')
-rw-r--r-- | src/corelib/io/qprocess.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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(); } |