Skip to content

Commit

Permalink
clean code: remove unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed May 23, 2022
1 parent de11e57 commit bb9811b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions article_netmgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bb9811b

Please sign in to comment.