Skip to content

Commit

Permalink
HexGenerator: remove unnecessary code in CommandRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
naussika committed Mar 10, 2023
1 parent 384df76 commit 7d43a4b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions HexGenerator/Source/Tools/CommandRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<<buffer<<" size="<<size<<endl;
data.resize(data.size()+size);
memcpy(&data[dist],buffer,size);
dist+=size;
}
//TIME_PRINT_

int ret = pclose(pipe)/256;
if (ret != 0) {
std::string msg = "Build process exited with code: " + std::to_string(ret);
Expand Down

0 comments on commit 7d43a4b

Please sign in to comment.