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
parent
90749ecf09
commit
3ce555a3de
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue