Skip to content

Commit

Permalink
remove unused variables in JSON-parsing code (#8627)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jan 4, 2023
1 parent 6eaddaa commit fa44a33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/common/json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ void ParseStr(std::string const& str) {

Json JsonReader::ParseString() {
char ch { GetConsecutiveChar('\"') }; // NOLINT
std::ostringstream output;
std::string str;
while (true) {
ch = GetNextChar();
Expand Down Expand Up @@ -656,7 +655,6 @@ Json JsonReader::ParseBoolean() {
char ch = GetNextNonSpaceChar();
std::string const t_value = u8"true";
std::string const f_value = u8"false";
std::string buffer;

if (ch == 't') {
GetConsecutiveChar('r');
Expand Down

0 comments on commit fa44a33

Please sign in to comment.