Skip to content

Commit

Permalink
Remove unused errorMessage
Browse files Browse the repository at this point in the history
Change-Id: If799737a69545bf6789213ce3f4dd6c724352213
  • Loading branch information
hhb committed Mar 4, 2021
1 parent 48054e5 commit 1c9baa3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/bit/make.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ BuildVars::BuildVars(const string& outDir, const string& buildProduct,

Json::Value json;
Json::CharReaderBuilder builder;
std::string errorMessage;
if (!Json::parseFromStream(builder, stream, &json, &errorMessage)) {
if (!Json::parseFromStream(builder, stream, &json, /* errorMessage = */ nullptr)) {
return;
}

Expand Down Expand Up @@ -215,8 +214,7 @@ read_modules(const string& buildOut, const string& device, map<string,Module>* r

Json::Value json;
Json::CharReaderBuilder builder;
std::string errorMessage;
if (!Json::parseFromStream(builder, stream, &json, &errorMessage)) {
if (!Json::parseFromStream(builder, stream, &json, /* errorMessage = */ nullptr)) {
json_error(filename, "can't parse json format", quiet);
return;
}
Expand Down

0 comments on commit 1c9baa3

Please sign in to comment.