QRingBuffer::reserve(): remove superfluous assert

'bytes' is checked against MaxByteArraySize in the beginning and
remains unchanged in the function.

Change-Id: Ibd4091b95837db16cf45f845d485bfb189317125
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Alex Trotsenko 2016-10-21 20:06:09 +03:00
parent 20aea39298
commit 9cac65bc66
1 changed files with 0 additions and 1 deletions

View File

@ -132,7 +132,6 @@ char *QRingBuffer::reserve(qint64 bytes)
char *writePtr = buffers.last().data() + tail;
bufferSize += bytes;
Q_ASSERT(bytes < MaxByteArraySize);
tail += int(bytes);
return writePtr;
}