QProcessPrivate::tryReadFromChannel(): remove dead code

'readBytes == 0' condition is checked in the code above.

Change-Id: I9448f47939b174fdef9f0cd5413254d41a8b4273
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Alex Trotsenko 2017-08-17 20:47:37 +03:00
parent 90749ecf09
commit 3ce555a3de
1 changed files with 1 additions and 4 deletions

View File

@ -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;