Remove Q_ASSERT's from large file autotest.

These assertions were made obsolete by the previous change to this test.

Change-Id: I3156b273a727f753a6c093c8fc7453b694c777ee
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 57f6ed6664f55ccee62b81750a2b3520249503fd)
This commit is contained in:
Jason McDonald 2011-05-03 10:21:32 +10:00 committed by Rohan McGovern
parent 3aa7455eab
commit 7bd778117c

View File

@ -160,13 +160,10 @@ static inline void appendRaw(QByteArray &array, T data)
*/
static inline void topUpWith(QByteArray &array, QByteArray filler, int size)
{
Q_ASSERT(filler.size() > 0);
for (int i = (size - array.size()) / filler.size(); i > 0; --i)
array.append(filler);
if (array.size() < size) {
Q_ASSERT(size - array.size() < filler.size());
array.append(filler.left(size - array.size()));
}
}
@ -212,8 +209,6 @@ static inline QByteArray generateDataBlock(int blockSize, QString text, qint64 u
appendRaw(block, userBits);
appendRaw(block, randomBits);
Q_ASSERT( block.size() == blockSize );
++counter;
return block;
}