mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +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 );
|
||||
}
|
||||
|
||||
// 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 )
|
||||
{
|
||||
auto bytesAvailable= baseReply->bytesAvailable();
|
||||
qint64 size = qMin( maxSize, bytesAvailable );
|
||||
baseReply->read( data, size );
|
||||
// memcpy( data, buffer.data(), size );
|
||||
// buffer.remove( 0, size );
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue