Skip to content

Commit

Permalink
Optimize JSON function SkipWhiteSpace call in ParseArray and ParseObj…
Browse files Browse the repository at this point in the history
…ect.
  • Loading branch information
scottcgi committed Jan 24, 2018
1 parent 91c8c17 commit 28f4121
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Engine/Toolkit/Utils/Json.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ static inline JsonValue* ParseArray(char** jsonPtr)
}
else
{
SkipWhiteSpace(jsonPtr);
ALog_A(**jsonPtr == ']', "Json Array not has ']', error char = %c ", **jsonPtr);
break;
}
Expand Down Expand Up @@ -525,7 +524,6 @@ static inline JsonValue* ParseObject(char** jsonPtr)
}
else
{
SkipWhiteSpace(jsonPtr);
ALog_A(**jsonPtr == '}', "Json Object not has '}', error char = %c ", **jsonPtr);
break;
}
Expand Down

0 comments on commit 28f4121

Please sign in to comment.