From aa23e870ecc9a2542513a016da98cab7e6d7706c Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 6 Dec 2021 16:50:44 -0500 Subject: Cleanup: Remove unused includes --- source/blender/blenkernel/intern/node.cc | 6 ++---- source/blender/editors/space_node/node_add.cc | 1 - source/blender/editors/space_node/node_draw.cc | 10 ++-------- source/blender/editors/space_node/node_select.cc | 1 - source/blender/editors/space_node/node_view.cc | 1 - source/blender/nodes/intern/node_socket.cc | 1 - source/blender/nodes/texture/nodes/node_texture_distance.c | 1 - 7 files changed, 4 insertions(+), 17 deletions(-) diff --git a/source/blender/blenkernel/intern/node.cc b/source/blender/blenkernel/intern/node.cc index a4f28c103a7..6c1a0d2657f 100644 --- a/source/blender/blenkernel/intern/node.cc +++ b/source/blender/blenkernel/intern/node.cc @@ -47,18 +47,18 @@ #include "DNA_texture_types.h" #include "DNA_world_types.h" +#include "BLI_color.hh" #include "BLI_ghash.h" #include "BLI_listbase.h" #include "BLI_map.hh" -#include "BLI_math.h" #include "BLI_path_util.h" #include "BLI_set.hh" #include "BLI_stack.hh" #include "BLI_string.h" #include "BLI_string_utils.h" +#include "BLI_threads.h" #include "BLI_utildefines.h" #include "BLI_vector_set.hh" - #include "BLT_translation.h" #include "BKE_anim_data.h" @@ -75,8 +75,6 @@ #include "BKE_main.h" #include "BKE_node.h" -#include "BLI_ghash.h" -#include "BLI_threads.h" #include "RNA_access.h" #include "RNA_define.h" diff --git a/source/blender/editors/space_node/node_add.cc b/source/blender/editors/space_node/node_add.cc index 5276cc39e83..5a8d91db085 100644 --- a/source/blender/editors/space_node/node_add.cc +++ b/source/blender/editors/space_node/node_add.cc @@ -28,7 +28,6 @@ #include "DNA_texture_types.h" #include "BLI_listbase.h" -#include "BLI_math.h" #include "BLT_translation.h" diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 0e6d5a81a8b..dda4b0b1d10 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -22,12 +22,13 @@ * \brief higher level node drawing for the node editor. */ +#include + #include "MEM_guardedalloc.h" #include "DNA_light_types.h" #include "DNA_linestyle_types.h" #include "DNA_material_types.h" -#include "DNA_modifier_types.h" #include "DNA_node_types.h" #include "DNA_screen_types.h" #include "DNA_space_types.h" @@ -36,7 +37,6 @@ #include "DNA_world_types.h" #include "BLI_map.hh" -#include "BLI_math.h" #include "BLI_set.hh" #include "BLI_span.hh" #include "BLI_string_ref.hh" @@ -87,12 +87,6 @@ #include "node_intern.hh" /* own include */ -#include - -#ifdef WITH_COMPOSITOR -# include "COM_compositor.h" -#endif - using blender::float2; using blender::Map; using blender::Set; diff --git a/source/blender/editors/space_node/node_select.cc b/source/blender/editors/space_node/node_select.cc index 3bf3ed9974e..0439f773866 100644 --- a/source/blender/editors/space_node/node_select.cc +++ b/source/blender/editors/space_node/node_select.cc @@ -29,7 +29,6 @@ #include "BLI_lasso_2d.h" #include "BLI_listbase.h" -#include "BLI_math.h" #include "BLI_rect.h" #include "BLI_string.h" #include "BLI_string_search.h" diff --git a/source/blender/editors/space_node/node_view.cc b/source/blender/editors/space_node/node_view.cc index 1153b28bd82..c7f341bb028 100644 --- a/source/blender/editors/space_node/node_view.cc +++ b/source/blender/editors/space_node/node_view.cc @@ -24,7 +24,6 @@ #include "DNA_node_types.h" #include "BLI_listbase.h" -#include "BLI_math.h" #include "BLI_rect.h" #include "BLI_string_ref.hh" #include "BLI_utildefines.h" diff --git a/source/blender/nodes/intern/node_socket.cc b/source/blender/nodes/intern/node_socket.cc index 68e8f6421bd..8f7b85c0625 100644 --- a/source/blender/nodes/intern/node_socket.cc +++ b/source/blender/nodes/intern/node_socket.cc @@ -28,7 +28,6 @@ #include "BLI_color.hh" #include "BLI_float3.hh" #include "BLI_listbase.h" -#include "BLI_math.h" #include "BLI_string.h" #include "BLI_utildefines.h" diff --git a/source/blender/nodes/texture/nodes/node_texture_distance.c b/source/blender/nodes/texture/nodes/node_texture_distance.c index f7deac9ff4a..c2241858737 100644 --- a/source/blender/nodes/texture/nodes/node_texture_distance.c +++ b/source/blender/nodes/texture/nodes/node_texture_distance.c @@ -21,7 +21,6 @@ * \ingroup texnodes */ -#include "BLI_math.h" #include "NOD_texture.h" #include "node_texture_util.h" #include -- cgit v1.2.3