summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorryanabx <ryanbrue@hotmail.com>2023-09-05 12:56:37 -0500
committerRyan Brue <ryanbrue@hotmail.com>2023-09-12 20:04:32 -0500
commitceda96013142080f9eb29be8dc7ca07db6030552 (patch)
treeb1a40e06e69d7311fa1d09e1fc88c0ace3d06df1 /modules/gdscript/gdscript_analyzer.cpp
parent3ed4497113fa10611b90290ce22a751fb9d26e2e (diff)
downloadredot-engine-ceda96013142080f9eb29be8dc7ca07db6030552.tar.gz
Remove REDUNDANT_FOR_VARIABLE_TYPE
Remove REDUNDANT_FOR_VARIABLE_TYPE
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 7b3d31f4a8..42be231424 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -2142,15 +2142,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) {
}
} else if (!is_type_compatible(specified_type, variable_type)) {
p_for->use_conversion_assign = true;
-#ifdef DEBUG_ENABLED
- } else {
- parser->push_warning(p_for->datatype_specifier, GDScriptWarning::REDUNDANT_FOR_VARIABLE_TYPE, p_for->variable->name, variable_type.to_string(), specified_type.to_string());
-#endif
}
-#ifdef DEBUG_ENABLED
- } else if (variable_type.is_hard_type()) {
- parser->push_warning(p_for->datatype_specifier, GDScriptWarning::REDUNDANT_FOR_VARIABLE_TYPE, p_for->variable->name, variable_type.to_string(), specified_type.to_string());
-#endif
}
p_for->variable->set_datatype(specified_type);
} else {