diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 3af14adb370..0435d56ebd0 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -810,7 +810,6 @@ public: const int vofs = (grid_size.height - h) / 2; int layer_index = 0; - int block_index = 0; Point2 arrow_pos; @@ -882,8 +881,6 @@ public: break; } } - - ++block_index; } if ((expansion_rows != prev_expansion_rows) && expanded) { diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index c7a3dd1f389..d8dd3bbc4c0 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -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> &p_shapes) { - int idx = 0; for (const List>::Element *E = p_shapes.front(); E; E = E->next()) { CollisionShape *cshape = memnew(CollisionShape); cshape->set_shape(E->get()); p_node->add_child(cshape); cshape->set_owner(p_node->get_owner()); - idx++; } } diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index ab16ee274b2..700e274106e 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -529,7 +529,6 @@ private: Vector failed_files; - int idx = 0; while (ret == UNZ_OK) { //get filename unz_file_info info; @@ -569,7 +568,6 @@ private: } } - idx++; ret = unzGoToNextFile(pkg); } diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index e7b4c38edfb..ec39db04f7b 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -204,18 +204,14 @@ String ScriptCreateDialog::_validate_path(const String &p_path, bool p_file_must bool found = false; bool match = false; - int index = 0; for (List::Element *E = extensions.front(); E; E = E->next()) { 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; if (E->get() == ScriptServer::get_language(language_menu->get_selected())->get_extension()) { match = true; } break; } - index++; } if (!found) {