1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20

This commit is contained in:
Rémi Verschelde
2022-11-04 11:36:13 +01:00
parent 191c8ed12f
commit f475c91081
6 changed files with 1 additions and 21 deletions

View File

@@ -275,7 +275,6 @@ String ScriptCreateDialog::_validate_path(const String &p_path, bool p_file_must
bool found = false;
bool match = false;
int index = 0;
for (const String &E : extensions) {
if (E.nocasecmp_to(extension) == 0) {
found = true;
@@ -284,7 +283,6 @@ String ScriptCreateDialog::_validate_path(const String &p_path, bool p_file_must
}
break;
}
index++;
}
if (!found) {