From 7d43a4b9866ef05e45c17a40f8f77882a61d66a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=86=E2=9C=A0Sa=CD=A5b=CD=A3e=CD=ABr=F0=9F=91=91?= =?UTF-8?q?=E2=B0=80?= Date: Thu, 9 Mar 2023 15:39:52 +0800 Subject: [PATCH] HexGenerator: remove unnecessary code in CommandRunner --- HexGenerator/Source/Tools/CommandRunner.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/HexGenerator/Source/Tools/CommandRunner.cpp b/HexGenerator/Source/Tools/CommandRunner.cpp index a5a170538..fdac5c57f 100644 --- a/HexGenerator/Source/Tools/CommandRunner.cpp +++ b/HexGenerator/Source/Tools/CommandRunner.cpp @@ -128,20 +128,7 @@ int build_hexfile( }); return 1; }; - char buffer[262144]; - std::string data; - std::string result; - int dist=0; - int size; - - //TIME_START - while(!feof(pipe)) { - size=(int)fread(buffer,1,262144, pipe); //cout<