remove unused variables in JSON-parsing code (#8627)

This commit is contained in:
James Lamb 2023-01-04 01:50:33 -06:00 committed by GitHub
parent 6eaddaa9c3
commit fa44a33ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
@ -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');