Fix some Clang -Wunused-but-set-variable warnings
This commit is contained in:
parent
edbfaa1d80
commit
e771804e78
4 changed files with 0 additions and 11 deletions
|
@ -871,7 +871,6 @@ public:
|
||||||
const int vofs = (grid_size.height - h) / 2;
|
const int vofs = (grid_size.height - h) / 2;
|
||||||
|
|
||||||
int layer_index = 0;
|
int layer_index = 0;
|
||||||
int block_index = 0;
|
|
||||||
|
|
||||||
Point2 arrow_pos;
|
Point2 arrow_pos;
|
||||||
|
|
||||||
|
@ -943,8 +942,6 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
++block_index;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((expansion_rows != prev_expansion_rows) && expanded) {
|
if ((expansion_rows != prev_expansion_rows) && expanded) {
|
||||||
|
|
|
@ -1148,14 +1148,12 @@ void ResourceImporterScene::_replace_owner(Node *p_node, Node *p_scene, Node *p_
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResourceImporterScene::_add_shapes(Node *p_node, const List<Ref<Shape>> &p_shapes) {
|
void ResourceImporterScene::_add_shapes(Node *p_node, const List<Ref<Shape>> &p_shapes) {
|
||||||
int idx = 0;
|
|
||||||
for (const List<Ref<Shape>>::Element *E = p_shapes.front(); E; E = E->next()) {
|
for (const List<Ref<Shape>>::Element *E = p_shapes.front(); E; E = E->next()) {
|
||||||
CollisionShape *cshape = memnew(CollisionShape);
|
CollisionShape *cshape = memnew(CollisionShape);
|
||||||
cshape->set_shape(E->get());
|
cshape->set_shape(E->get());
|
||||||
p_node->add_child(cshape);
|
p_node->add_child(cshape);
|
||||||
|
|
||||||
cshape->set_owner(p_node->get_owner());
|
cshape->set_owner(p_node->get_owner());
|
||||||
idx++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -530,7 +530,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
|
||||||
unz_file_info info;
|
unz_file_info info;
|
||||||
|
@ -570,7 +569,6 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
idx++;
|
|
||||||
ret = unzGoToNextFile(pkg);
|
ret = unzGoToNextFile(pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,18 +204,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) {
|
if (!found) {
|
||||||
|
|
Loading…
Reference in a new issue