mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
GDScript: Remove RENAMED_IN_GODOT_4_HINT
from GDScriptWarning::Code
enum
This commit is contained in:
parent
0e3a5eda86
commit
cd918ff470
8 changed files with 16 additions and 18 deletions
|
@ -964,9 +964,11 @@ static void _find_annotation_arguments(const GDScriptParser::AnnotationNode *p_a
|
|||
}
|
||||
} else if (p_annotation->name == SNAME("@warning_ignore") || p_annotation->name == SNAME("@warning_ignore_start") || p_annotation->name == SNAME("@warning_ignore_restore")) {
|
||||
for (int warning_code = 0; warning_code < GDScriptWarning::WARNING_MAX; warning_code++) {
|
||||
if (warning_code == GDScriptWarning::RENAMED_IN_GODOT_4_HINT) {
|
||||
continue;
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
if (warning_code >= GDScriptWarning::FIRST_DEPRECATED_WARNING) {
|
||||
break; // Don't suggest deprecated warnings as they are never produced.
|
||||
}
|
||||
#endif
|
||||
ScriptLanguage::CodeCompletionOption warning(GDScriptWarning::get_name_from_code((GDScriptWarning::Code)warning_code).to_lower(), ScriptLanguage::CODE_COMPLETION_KIND_PLAIN_TEXT);
|
||||
warning.insert_text = warning.display.quote(p_quote_style);
|
||||
r_result.insert(warning.display, warning);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue