[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49518] trunk/blender/source/blender/ editors/space_node: code cleanup: remove unused includes
Campbell Barton
ideasman42 at gmail.com
Fri Aug 3 01:03:17 CEST 2012
Revision: 49518
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49518
Author: campbellbarton
Date: 2012-08-02 23:03:16 +0000 (Thu, 02 Aug 2012)
Log Message:
-----------
code cleanup: remove unused includes
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_node/drawnode.c
trunk/blender/source/blender/editors/space_node/node_buttons.c
trunk/blender/source/blender/editors/space_node/node_draw.c
trunk/blender/source/blender/editors/space_node/node_edit.c
trunk/blender/source/blender/editors/space_node/node_header.c
trunk/blender/source/blender/editors/space_node/node_ops.c
trunk/blender/source/blender/editors/space_node/node_select.c
trunk/blender/source/blender/editors/space_node/node_templates.c
trunk/blender/source/blender/editors/space_node/node_view.c
trunk/blender/source/blender/editors/space_node/space_node.c
Modified: trunk/blender/source/blender/editors/space_node/drawnode.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/drawnode.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/drawnode.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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);
Modified: trunk/blender/source/blender/editors/space_node/node_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_buttons.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_buttons.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 ************** */
Modified: trunk/blender/source/blender/editors/space_node/node_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_draw.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_draw.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 */
Modified: trunk/blender/source/blender/editors/space_node/node_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_edit.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_edit.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 */
Modified: trunk/blender/source/blender/editors/space_node/node_header.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_header.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_header.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 @@
mt->draw= node_menu_add;
WM_menutype_add(mt);
}
-
Modified: trunk/blender/source/blender/editors/space_node/node_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_ops.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_ops.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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)
{
Modified: trunk/blender/source/blender/editors/space_node/node_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_select.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_select.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 ****** */
Modified: trunk/blender/source/blender/editors/space_node/node_templates.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_templates.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_templates.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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"
+#include "ED_node.h" /* own include */
+
#include "ED_util.h"
/************************* Node Socket Manipulation **************************/
Modified: trunk/blender/source/blender/editors/space_node/node_view.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_view.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/node_view.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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"
Modified: trunk/blender/source/blender/editors/space_node/space_node.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/space_node.c 2012-08-02 22:07:10 UTC (rev 49517)
+++ trunk/blender/source/blender/editors/space_node/space_node.c 2012-08-02 23:03:16 UTC (rev 49518)
@@ -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 ********************* */
More information about the Bf-blender-cvs
mailing list