mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
clean code: remove unused line
This commit is contained in:
parent
de11e573d3
commit
bb9811bdf4
|
@ -131,22 +131,11 @@ using std::string;
|
||||||
emit errorOccurred( code );
|
emit errorOccurred( code );
|
||||||
}
|
}
|
||||||
|
|
||||||
// void AllowFrameReply::readDataFromBase()
|
|
||||||
// {
|
|
||||||
//// QByteArray data;
|
|
||||||
//// data.resize( baseReply->bytesAvailable() );
|
|
||||||
//// baseReply->read( data.data(), data.size() );
|
|
||||||
//// buffer += data;
|
|
||||||
// emit readyRead();
|
|
||||||
// }
|
|
||||||
|
|
||||||
qint64 AllowFrameReply::readData( char * data, qint64 maxSize )
|
qint64 AllowFrameReply::readData( char * data, qint64 maxSize )
|
||||||
{
|
{
|
||||||
auto bytesAvailable= baseReply->bytesAvailable();
|
auto bytesAvailable= baseReply->bytesAvailable();
|
||||||
qint64 size = qMin( maxSize, bytesAvailable );
|
qint64 size = qMin( maxSize, bytesAvailable );
|
||||||
baseReply->read( data, size );
|
baseReply->read( data, size );
|
||||||
// memcpy( data, buffer.data(), size );
|
|
||||||
// buffer.remove( 0, size );
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue