From c8dbde877913f957c8aa3b60d2acda21b2bbeaa4 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 10 Jan 2025 03:09:00 +0100 Subject: [PATCH] Cleanup: Remove unused includes in space node folder Pull Request: https://projects.blender.org/blender/blender/pulls/132882 --- source/blender/editors/space_node/drawnode.cc | 6 ------ source/blender/editors/space_node/node_edit.cc | 1 + .../editors/space_node/node_geometry_attribute_search.cc | 8 -------- source/blender/editors/space_node/node_group.cc | 2 -- source/blender/editors/space_node/node_intern.hh | 2 -- source/blender/editors/space_node/node_ops.cc | 2 +- source/blender/editors/space_node/node_relationships.cc | 3 --- source/blender/editors/space_node/node_select.cc | 3 --- source/blender/editors/space_node/node_templates.cc | 2 -- source/blender/editors/space_node/node_view.cc | 1 - 10 files changed, 2 insertions(+), 28 deletions(-) diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index 984a72f88c2..62ceea643ca 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -9,11 +9,9 @@ #include "BLI_color.hh" #include "BLI_string.h" -#include "BLI_system.h" #include "BLI_threads.h" #include "DNA_node_types.h" -#include "DNA_object_types.h" #include "DNA_screen_types.h" #include "DNA_space_types.h" #include "DNA_userdef_types.h" @@ -30,7 +28,6 @@ #include "BKE_scene.hh" #include "BKE_tracking.h" -#include "BLF_api.hh" #include "BLT_translation.hh" #include "BIF_glutil.hh" @@ -40,7 +37,6 @@ #include "GPU_framebuffer.hh" #include "GPU_immediate.hh" #include "GPU_matrix.hh" -#include "GPU_platform.hh" #include "GPU_shader_shared.hh" #include "GPU_state.hh" #include "GPU_uniform_buffer.hh" @@ -68,9 +64,7 @@ #include "NOD_geometry_nodes_gizmos.hh" #include "NOD_node_declaration.hh" #include "NOD_partial_eval.hh" -#include "NOD_shader.h" #include "NOD_socket.hh" -#include "NOD_texture.h" #include "node_intern.hh" /* own include */ namespace blender::ed::space_node { diff --git a/source/blender/editors/space_node/node_edit.cc b/source/blender/editors/space_node/node_edit.cc index 5adaa5c7ae5..89784d58cfe 100644 --- a/source/blender/editors/space_node/node_edit.cc +++ b/source/blender/editors/space_node/node_edit.cc @@ -32,6 +32,7 @@ #include "BKE_scene_runtime.hh" #include "BLI_math_vector.h" +#include "BLI_math_vector.hh" #include "BLI_string.h" #include "BLI_string_utf8.h" diff --git a/source/blender/editors/space_node/node_geometry_attribute_search.cc b/source/blender/editors/space_node/node_geometry_attribute_search.cc index 44f8ac3b8c2..9ef85be1417 100644 --- a/source/blender/editors/space_node/node_geometry_attribute_search.cc +++ b/source/blender/editors/space_node/node_geometry_attribute_search.cc @@ -2,17 +2,12 @@ * * SPDX-License-Identifier: GPL-2.0-or-later */ -#include "BLI_index_range.hh" -#include "BLI_listbase.h" #include "BLI_map.hh" -#include "BLI_rect.h" #include "BLI_set.hh" #include "BLI_string.h" #include "BLI_string_ref.hh" -#include "DNA_modifier_types.h" #include "DNA_node_types.h" -#include "DNA_object_types.h" #include "DNA_space_types.h" #include "BKE_context.hh" @@ -20,7 +15,6 @@ #include "BKE_node_runtime.hh" #include "BKE_node_tree_update.hh" #include "BKE_node_tree_zones.hh" -#include "BKE_object.hh" #include "RNA_access.hh" #include "RNA_enum_types.hh" @@ -29,8 +23,6 @@ #include "ED_screen.hh" #include "ED_undo.hh" -#include "BLT_translation.hh" - #include "UI_interface.hh" #include "UI_resources.hh" diff --git a/source/blender/editors/space_node/node_group.cc b/source/blender/editors/space_node/node_group.cc index 9dc1a942b05..b0269484dc1 100644 --- a/source/blender/editors/space_node/node_group.cc +++ b/source/blender/editors/space_node/node_group.cc @@ -13,7 +13,6 @@ #include "DNA_anim_types.h" #include "DNA_node_types.h" -#include "BLI_linklist.h" #include "BLI_listbase.h" #include "BLI_map.hh" #include "BLI_math_vector_types.hh" @@ -37,7 +36,6 @@ #include "DEG_depsgraph_build.hh" -#include "ED_node.hh" /* own include */ #include "ED_node.hh" #include "ED_node_preview.hh" #include "ED_render.hh" diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index b84b7c10dee..f09f19d940a 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -9,9 +9,7 @@ #pragma once #include "BLI_compute_context.hh" -#include "BLI_math_vector.hh" #include "BLI_vector.hh" -#include "BLI_vector_set.hh" #include "BKE_node.hh" diff --git a/source/blender/editors/space_node/node_ops.cc b/source/blender/editors/space_node/node_ops.cc index 9e943923b93..5531ada6c46 100644 --- a/source/blender/editors/space_node/node_ops.cc +++ b/source/blender/editors/space_node/node_ops.cc @@ -8,7 +8,7 @@ #include "DNA_node_types.h" -#include "ED_node.hh" /* own include */ +#include "ED_node_c.hh" #include "ED_screen.hh" #include "RNA_access.hh" diff --git a/source/blender/editors/space_node/node_relationships.cc b/source/blender/editors/space_node/node_relationships.cc index ccebeafa922..0f078f522a6 100644 --- a/source/blender/editors/space_node/node_relationships.cc +++ b/source/blender/editors/space_node/node_relationships.cc @@ -38,11 +38,8 @@ #include "UI_resources.hh" #include "UI_view2d.hh" -#include "BLT_translation.hh" - #include "NOD_node_declaration.hh" #include "NOD_socket.hh" -#include "NOD_socket_declarations_geometry.hh" #include "node_intern.hh" /* own include */ diff --git a/source/blender/editors/space_node/node_select.cc b/source/blender/editors/space_node/node_select.cc index 24441b81a7c..7ca282cb8a8 100644 --- a/source/blender/editors/space_node/node_select.cc +++ b/source/blender/editors/space_node/node_select.cc @@ -8,7 +8,6 @@ #include #include -#include #include "DNA_node_types.h" #include "DNA_windowmanager_types.h" @@ -48,8 +47,6 @@ #include "DEG_depsgraph.hh" -#include "MEM_guardedalloc.h" - #include "node_intern.hh" /* own include */ namespace blender::ed::space_node { diff --git a/source/blender/editors/space_node/node_templates.cc b/source/blender/editors/space_node/node_templates.cc index 7e4f9bc3429..1d87daf0e80 100644 --- a/source/blender/editors/space_node/node_templates.cc +++ b/source/blender/editors/space_node/node_templates.cc @@ -26,7 +26,6 @@ #include "BKE_lib_id.hh" #include "BKE_main.hh" #include "BKE_node_runtime.hh" -#include "BKE_node_tree_interface.hh" #include "BKE_node_tree_update.hh" #include "RNA_access.hh" @@ -34,7 +33,6 @@ #include "NOD_node_declaration.hh" #include "NOD_socket.hh" -#include "NOD_socket_declarations.hh" #include "../interface/interface_intern.hh" /* XXX bad level */ #include "UI_interface.hh" diff --git a/source/blender/editors/space_node/node_view.cc b/source/blender/editors/space_node/node_view.cc index 6dd258c2424..83f3e004d4f 100644 --- a/source/blender/editors/space_node/node_view.cc +++ b/source/blender/editors/space_node/node_view.cc @@ -9,7 +9,6 @@ #include "DNA_node_types.h" #include "BLI_rect.h" -#include "BLI_string_ref.hh" #include "BLI_utildefines.h" #include "BKE_context.hh"