From bb9811bdf454d13f7bee9d98a76cbebee5f22afb Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Mon, 23 May 2022 23:42:52 +0800 Subject: [PATCH] clean code: remove unused line --- article_netmgr.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/article_netmgr.cc b/article_netmgr.cc index e63ebfffa..db2aa0e95 100644 --- a/article_netmgr.cc +++ b/article_netmgr.cc @@ -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; }