clean code: remove unused line

This commit is contained in:
Xiao YiFang 2022-05-23 23:42:52 +08:00
parent de11e573d3
commit bb9811bdf4

View file

@ -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;
} }