remove redundant branch in QIODevice::seek()

missed a hunk, should've been applied with a0ef87cd2b

upstream commit:
05d980664f

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-04 11:48:17 +00:00
parent 095e1abcc9
commit 4b1bac1bc0

View file

@ -648,10 +648,8 @@ bool QIODevice::seek(qint64 pos)
#endif
qint64 offset = pos - d->pos;
if (!d->isSequential()) {
d->pos = pos;
d->devicePos = pos;
}
d->pos = pos;
d->devicePos = pos;
if (offset < 0 || offset >= d->buffer.size())
// When seeking backwards, an operation that is only allowed for