diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-13 14:28:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-13 14:28:05 +0100 |
commit | dcfe44f4479ddbf3518d3e753fbf242845402ae4 (patch) | |
tree | 08e9b17099079836ffae47c4cf234d0bd115c909 /core/io/json.cpp | |
parent | 835406cf04f0200a0504ae171964c687c559eb1e (diff) | |
parent | 54ac8eaba661a599983ae4774113d1a15cfa461a (diff) |
Merge pull request #36175 from akien-mga/remove-more-deprecated-stuff
Remove deprecated methods and code
Diffstat (limited to 'core/io/json.cpp')
-rw-r--r-- | core/io/json.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/core/io/json.cpp b/core/io/json.cpp index dbf1676e62..144e4bdc3b 100644 --- a/core/io/json.cpp +++ b/core/io/json.cpp @@ -203,8 +203,7 @@ Error JSON::_get_token(const CharType *p_str, int &index, int p_len, Token &r_to case 'f': res = 12; break; case 'r': res = 13; break; case 'u': { - //hexnumbarh - oct is deprecated - + // hex number for (int j = 0; j < 4; j++) { CharType c = p_str[index + j + 1]; if (c == 0) { @@ -226,7 +225,7 @@ Error JSON::_get_token(const CharType *p_str, int &index, int p_len, Token &r_to v = c - 'A'; v += 10; } else { - ERR_PRINT("BUG"); + ERR_PRINT("Bug parsing hex constant."); v = 0; } @@ -236,13 +235,8 @@ Error JSON::_get_token(const CharType *p_str, int &index, int p_len, Token &r_to index += 4; //will add at the end anyway } break; - //case '\"': res='\"'; break; - //case '\\': res='\\'; break; - //case '/': res='/'; break; default: { res = next; - //r_err_str="Invalid escape sequence"; - //return ERR_PARSE_ERROR; } break; } |