Remove more deprecated methods and code
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user