mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +00:00
Merge pull request #18321 from Crazy-P/Fixes-logically-dead-code
Fixes logically dead code (Coverity)
This commit is contained in:
commit
4cce6f3417
13 changed files with 38 additions and 65 deletions
|
|
@ -455,7 +455,7 @@ Error VisualScriptExpression::_get_token(Token &r_token) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (cchar == '-' || (cchar >= '0' && cchar <= '9')) {
|
||||
if (cchar >= '0' && cchar <= '9') {
|
||||
//a number
|
||||
|
||||
String num;
|
||||
|
|
@ -466,11 +466,6 @@ Error VisualScriptExpression::_get_token(Token &r_token) {
|
|||
#define READING_DONE 4
|
||||
int reading = READING_INT;
|
||||
|
||||
if (cchar == '-') {
|
||||
num += '-';
|
||||
cchar = GET_CHAR();
|
||||
}
|
||||
|
||||
CharType c = cchar;
|
||||
bool exp_sign = false;
|
||||
bool exp_beg = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue