diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:33 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-14 15:21:33 +0200 |
commit | 223fc3cdd3c9f4927ecf68ebaa405c7c0993beec (patch) | |
tree | a179cf07232afaeeee0bfce9c5ab9aeee4c0c94d /modules/gdscript/gdscript_warning.cpp | |
parent | 55840c5d24b71206ad3b75d0bc8e4438eca537b9 (diff) | |
parent | ceda96013142080f9eb29be8dc7ca07db6030552 (diff) | |
download | redot-engine-223fc3cdd3c9f4927ecf68ebaa405c7c0993beec.tar.gz |
Merge pull request #81440 from ryanabx/features/warn-strict-supertype-only
Remove `REDUNDANT_FOR_VARIABLE_TYPE` warning
Diffstat (limited to 'modules/gdscript/gdscript_warning.cpp')
-rw-r--r-- | modules/gdscript/gdscript_warning.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/gdscript/gdscript_warning.cpp b/modules/gdscript/gdscript_warning.cpp index fcc6ea34de..ef2913926c 100644 --- a/modules/gdscript/gdscript_warning.cpp +++ b/modules/gdscript/gdscript_warning.cpp @@ -119,14 +119,6 @@ String GDScriptWarning::get_message() const { return R"(The "@static_unload" annotation is redundant because the file does not have a class with static variables.)"; case REDUNDANT_AWAIT: return R"("await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.)"; - case REDUNDANT_FOR_VARIABLE_TYPE: - CHECK_SYMBOLS(3); - if (symbols[1] == symbols[2]) { - return vformat(R"(The for loop iterator "%s" already has inferred type "%s", the specified type is redundant.)", symbols[0], symbols[1]); - } else { - return vformat(R"(The for loop iterator "%s" has inferred type "%s" but its supertype "%s" is specified.)", symbols[0], symbols[1], symbols[2]); - } - break; case ASSERT_ALWAYS_TRUE: return "Assert statement is redundant because the expression is always true."; case ASSERT_ALWAYS_FALSE: @@ -224,7 +216,6 @@ String GDScriptWarning::get_name_from_code(Code p_code) { "STATIC_CALLED_ON_INSTANCE", "REDUNDANT_STATIC_UNLOAD", "REDUNDANT_AWAIT", - "REDUNDANT_FOR_VARIABLE_TYPE", "ASSERT_ALWAYS_TRUE", "ASSERT_ALWAYS_FALSE", "INTEGER_DIVISION", |