mirror of https://github.com/godotengine/godot
Fix some Clang -Wunused-but-set-variable warnings
(cherry picked from commit e771804e78)
This commit is contained in:
parent
e6cab51ad5
commit
9418bc4e79
|
|
@ -535,7 +535,6 @@ private:
|
||||||
|
|
||||||
Vector<String> failed_files;
|
Vector<String> failed_files;
|
||||||
|
|
||||||
int idx = 0;
|
|
||||||
while (ret == UNZ_OK) {
|
while (ret == UNZ_OK) {
|
||||||
|
|
||||||
//get filename
|
//get filename
|
||||||
|
|
@ -587,7 +586,6 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
idx++;
|
|
||||||
ret = unzGoToNextFile(pkg);
|
ret = unzGoToNextFile(pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,18 +200,14 @@ String ScriptCreateDialog::_validate_path(const String &p_path, bool p_file_must
|
||||||
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
bool match = false;
|
bool match = false;
|
||||||
int index = 0;
|
|
||||||
for (List<String>::Element *E = extensions.front(); E; E = E->next()) {
|
for (List<String>::Element *E = extensions.front(); E; E = E->next()) {
|
||||||
if (E->get().nocasecmp_to(extension) == 0) {
|
if (E->get().nocasecmp_to(extension) == 0) {
|
||||||
//FIXME (?) - changing language this way doesn't update controls, needs rework
|
|
||||||
//language_menu->select(index); // change Language option by extension
|
|
||||||
found = true;
|
found = true;
|
||||||
if (E->get() == ScriptServer::get_language(language_menu->get_selected())->get_extension()) {
|
if (E->get() == ScriptServer::get_language(language_menu->get_selected())->get_extension()) {
|
||||||
match = true;
|
match = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
index++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found) return TTR("Invalid extension.");
|
if (!found) return TTR("Invalid extension.");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue