From 3ce555a3de71725e83cd4e6cbd4da9ca1bc7ba20 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Thu, 17 Aug 2017 20:47:37 +0300 Subject: [PATCH] QProcessPrivate::tryReadFromChannel(): remove dead code 'readBytes == 0' condition is checked in the code above. Change-Id: I9448f47939b174fdef9f0cd5413254d41a8b4273 Reviewed-by: Thiago Macieira --- src/corelib/io/qprocess.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index bb16b0c427..4e106691f7 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -1051,10 +1051,7 @@ bool QProcessPrivate::tryReadFromChannel(Channel *channel) readBuffer.chop(available - readBytes); bool didRead = false; - if (readBytes == 0) { - if (channel->notifier) - channel->notifier->setEnabled(false); - } else if (currentReadChannel == channelIdx) { + if (currentReadChannel == channelIdx) { didRead = true; if (!emittedReadyRead) { emittedReadyRead = true;