diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-03 03:03:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-03 03:03:16 +0400 |
commit | db8c9c24f669d01ba76b9d29d80911d5c96a27a6 (patch) | |
tree | 58b328c2f40027b5fc2afc1e45d746e7c20e87d1 /source | |
parent | ffd8352f563f228793c7fa4457ff9fdb6c26d6ba (diff) |
code cleanup: remove unused includes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 17 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_buttons.c | 12 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 22 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 7 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_header.c | 11 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_ops.c | 5 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_select.c | 10 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_templates.c | 15 | ||||
-rw-r--r-- | source/blender/editors/space_node/node_view.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_node/space_node.c | 9 |
10 files changed, 12 insertions, 100 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index c3d9336ae64..8a06d14033f 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -30,26 +30,17 @@ * \brief lower level node drawing for nodes (boarders, headers etc), also node layout. */ -#include <math.h> -#include <stdio.h> -#include <string.h> - #include "BLI_blenlib.h" #include "BLI_math.h" -#include "BLI_utildefines.h" #include "DNA_node_types.h" -#include "DNA_material_types.h" #include "DNA_object_types.h" -#include "DNA_scene_types.h" #include "DNA_space_types.h" #include "DNA_screen_types.h" #include "BKE_context.h" #include "BKE_curve.h" -#include "BKE_global.h" #include "BKE_image.h" -#include "BKE_library.h" #include "BKE_main.h" #include "BKE_node.h" #include "BKE_tracking.h" @@ -57,17 +48,12 @@ #include "BLF_api.h" #include "BLF_translation.h" -#include "NOD_composite.h" -#include "NOD_shader.h" #include "BIF_gl.h" #include "BIF_glutil.h" -#include "BLF_api.h" - #include "MEM_guardedalloc.h" - #include "RNA_access.h" #include "ED_node.h" @@ -75,13 +61,12 @@ #include "WM_api.h" #include "WM_types.h" -#include "UI_interface.h" #include "UI_resources.h" #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" -#include "node_intern.h" +#include "node_intern.h" /* own include */ /* XXX interface.h */ extern void ui_dropshadow(rctf *rct, float radius, float aspect, float alpha, int select); diff --git a/source/blender/editors/space_node/node_buttons.c b/source/blender/editors/space_node/node_buttons.c index bc4c391720a..622116885ac 100644 --- a/source/blender/editors/space_node/node_buttons.c +++ b/source/blender/editors/space_node/node_buttons.c @@ -28,21 +28,12 @@ * \ingroup spnode */ - -#include <string.h> -#include <stdio.h> -#include <math.h> -#include <float.h> - #include "MEM_guardedalloc.h" #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "BLI_math.h" #include "BLI_blenlib.h" -#include "BLI_rand.h" -#include "BLI_utildefines.h" #include "BLF_translation.h" @@ -59,10 +50,9 @@ #include "ED_gpencil.h" #include "ED_screen.h" -#include "UI_interface.h" #include "UI_resources.h" -#include "node_intern.h" // own include +#include "node_intern.h" /* own include */ /* ******************* node space & buttons ************** */ diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 92b1fca673d..9274046db63 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -29,26 +29,13 @@ * \brief higher level node drawing for the node editor. */ -#include <math.h> -#include <stdio.h> -#include <string.h> - -#include "MEM_guardedalloc.h" - #include "DNA_node_types.h" -#include "DNA_lamp_types.h" -#include "DNA_material_types.h" #include "DNA_object_types.h" -#include "DNA_scene_types.h" #include "DNA_space_types.h" #include "DNA_screen_types.h" -#include "DNA_world_types.h" #include "BLI_math.h" #include "BLI_blenlib.h" -#include "BLI_rect.h" -#include "BLI_threads.h" -#include "BLI_utildefines.h" #include "BLF_translation.h" @@ -67,19 +54,12 @@ #include "ED_gpencil.h" #include "ED_space_api.h" -#include "UI_interface.h" -#include "UI_interface_icons.h" #include "UI_resources.h" #include "UI_view2d.h" #include "RNA_access.h" -#include "NOD_composite.h" -#include "NOD_shader.h" - -#include "intern/node_util.h" - -#include "node_intern.h" +#include "node_intern.h" /* own include */ #include "COM_compositor.h" /* width of socket columns in group display */ diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 90c61788a51..c3e5337b642 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -50,17 +50,13 @@ #include "BKE_material.h" #include "BKE_paint.h" #include "BKE_scene.h" -#include "BKE_screen.h" #include "BKE_texture.h" #include "RE_pipeline.h" -#include "IMB_imbuf_types.h" #include "ED_node.h" /* own include */ -#include "ED_image.h" #include "ED_screen.h" -#include "ED_space_api.h" #include "ED_render.h" #include "RNA_access.h" @@ -71,9 +67,6 @@ #include "UI_view2d.h" -#include "IMB_imbuf.h" - - #include "GPU_material.h" #include "node_intern.h" /* own include */ diff --git a/source/blender/editors/space_node/node_header.c b/source/blender/editors/space_node/node_header.c index d4cfa2a3ba2..6114323ff02 100644 --- a/source/blender/editors/space_node/node_header.c +++ b/source/blender/editors/space_node/node_header.c @@ -28,13 +28,10 @@ * \ingroup spnode */ - #include <string.h> -#include <stdio.h> #include "DNA_space_types.h" #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "DNA_screen_types.h" #include "MEM_guardedalloc.h" @@ -51,17 +48,12 @@ #include "BKE_scene.h" #include "BKE_screen.h" -#include "RNA_access.h" - #include "WM_api.h" #include "WM_types.h" -#include "UI_interface.h" -#include "UI_interface_icons.h" -#include "UI_resources.h" #include "UI_view2d.h" -#include "node_intern.h" +#include "node_intern.h" /* own include */ /* ************************ add menu *********************** */ @@ -255,4 +247,3 @@ void node_menus_register(void) mt->draw= node_menu_add; WM_menutype_add(mt); } - diff --git a/source/blender/editors/space_node/node_ops.c b/source/blender/editors/space_node/node_ops.c index 2efeebbfc75..0d0b7ecf2c0 100644 --- a/source/blender/editors/space_node/node_ops.c +++ b/source/blender/editors/space_node/node_ops.c @@ -30,13 +30,12 @@ #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "BKE_context.h" #include "BLI_utildefines.h" -#include "ED_node.h" +#include "ED_node.h" /* own include */ #include "ED_screen.h" #include "ED_transform.h" @@ -45,7 +44,7 @@ #include "WM_api.h" #include "WM_types.h" -#include "node_intern.h" +#include "node_intern.h" /* own include */ void node_operatortypes(void) { diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c index 71739d97508..1fd50fda462 100644 --- a/source/blender/editors/space_node/node_select.c +++ b/source/blender/editors/space_node/node_select.c @@ -28,13 +28,7 @@ * \ingroup spnode */ - -#include <stdio.h> - -#include "BLI_listbase.h" - #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "BKE_context.h" #include "BKE_main.h" @@ -43,7 +37,7 @@ #include "BLI_rect.h" #include "BLI_utildefines.h" -#include "ED_node.h" +#include "ED_node.h" /* own include */ #include "ED_screen.h" #include "ED_types.h" @@ -55,7 +49,7 @@ #include "UI_view2d.h" -#include "node_intern.h" +#include "node_intern.h" /* own include */ /* ****** helpers ****** */ diff --git a/source/blender/editors/space_node/node_templates.c b/source/blender/editors/space_node/node_templates.c index f12c7941e1d..a8fe8318f22 100644 --- a/source/blender/editors/space_node/node_templates.c +++ b/source/blender/editors/space_node/node_templates.c @@ -24,41 +24,32 @@ * \ingroup edinterface */ -#include <stdlib.h> -#include <stddef.h> #include <string.h> #include "MEM_guardedalloc.h" #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "DNA_screen_types.h" #include "BLI_listbase.h" #include "BLI_string.h" -#include "BLI_utildefines.h" #include "BLF_translation.h" #include "BKE_context.h" -#include "BKE_depsgraph.h" #include "BKE_library.h" #include "BKE_main.h" -#include "BKE_node.h" #include "BKE_scene.h" #include "RNA_access.h" #include "NOD_socket.h" -#include "WM_api.h" -#include "WM_types.h" - #include "UI_interface.h" -#include "UI_resources.h" -#include "../interface/interface_intern.h" +#include "../interface/interface_intern.h" /* XXX bad level */ + +#include "ED_node.h" /* own include */ -#include "ED_node.h" #include "ED_util.h" /************************* Node Socket Manipulation **************************/ diff --git a/source/blender/editors/space_node/node_view.c b/source/blender/editors/space_node/node_view.c index b58110921ef..872fd19640d 100644 --- a/source/blender/editors/space_node/node_view.c +++ b/source/blender/editors/space_node/node_view.c @@ -28,16 +28,12 @@ * \ingroup spnode */ -#include <stdio.h> - #include "DNA_node_types.h" -#include "DNA_scene_types.h" #include "BLI_rect.h" #include "BLI_utildefines.h" #include "BKE_context.h" -#include "BKE_node.h" #include "BKE_image.h" #include "BKE_screen.h" diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c index bfc83018dbb..af301bce942 100644 --- a/source/blender/editors/space_node/space_node.c +++ b/source/blender/editors/space_node/space_node.c @@ -29,28 +29,21 @@ */ -#include <string.h> -#include <stdio.h> #include "DNA_lamp_types.h" #include "DNA_material_types.h" #include "DNA_node_types.h" -#include "DNA_object_types.h" -#include "DNA_scene_types.h" #include "DNA_world_types.h" #include "MEM_guardedalloc.h" #include "BLI_blenlib.h" #include "BLI_math.h" -#include "BLI_rand.h" -#include "BLI_utildefines.h" #include "BKE_context.h" #include "BKE_screen.h" #include "BKE_node.h" -#include "ED_space_api.h" #include "ED_render.h" #include "ED_screen.h" @@ -63,7 +56,7 @@ #include "RNA_access.h" -#include "node_intern.h" // own include +#include "node_intern.h" /* own include */ /* ******************** manage regions ********************* */ |