[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27484] trunk/blender/source/blender/ python: remove unused includes

Campbell Barton ideasman42 at gmail.com
Sun Mar 14 17:06:44 CET 2010


Revision: 27484
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27484
Author:   campbellbarton
Date:     2010-03-14 17:06:43 +0100 (Sun, 14 Mar 2010)

Log Message:
-----------
remove unused includes

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/Geometry.c
    trunk/blender/source/blender/python/generic/IDProp.c
    trunk/blender/source/blender/python/generic/Mathutils.c
    trunk/blender/source/blender/python/generic/bpy_internal_import.c
    trunk/blender/source/blender/python/generic/euler.c
    trunk/blender/source/blender/python/generic/quat.c
    trunk/blender/source/blender/python/intern/bpy.c
    trunk/blender/source/blender/python/intern/bpy_app.c
    trunk/blender/source/blender/python/intern/bpy_array.c
    trunk/blender/source/blender/python/intern/bpy_driver.c
    trunk/blender/source/blender/python/intern/bpy_interface.c
    trunk/blender/source/blender/python/intern/bpy_operator.c
    trunk/blender/source/blender/python/intern/bpy_operator_wrap.c
    trunk/blender/source/blender/python/intern/bpy_props.c
    trunk/blender/source/blender/python/intern/bpy_rna.c
    trunk/blender/source/blender/python/intern/bpy_rna_callback.c
    trunk/blender/source/blender/python/intern/bpy_util.c

Modified: trunk/blender/source/blender/python/generic/Geometry.c
===================================================================
--- trunk/blender/source/blender/python/generic/Geometry.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/Geometry.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -29,11 +29,6 @@
 
 #include "Geometry.h"
 
-/*  - Not needed for now though other geometry functions will probably need them
-#include "BLI_math.h"
-#include "BKE_utildefines.h"
-*/
-
 /* Used for PolyFill */
 #include "BKE_displist.h"
 #include "MEM_guardedalloc.h"

Modified: trunk/blender/source/blender/python/generic/IDProp.c
===================================================================
--- trunk/blender/source/blender/python/generic/IDProp.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/IDProp.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -23,15 +23,10 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "DNA_ID.h"
-
 #include "BKE_idprop.h"
 
 #include "IDProp.h"
-// #include "gen_utils.h"
 
-#include "MEM_guardedalloc.h"
-
 #define BSTR_EQ(a, b)	(*(a) == *(b) && !strcmp(a, b))
 
 /*** Function to wrap ID properties ***/

Modified: trunk/blender/source/blender/python/generic/Mathutils.c
===================================================================
--- trunk/blender/source/blender/python/generic/Mathutils.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/Mathutils.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -50,8 +50,6 @@
 #include "Mathutils.h"
 
 #include "BLI_math.h"
-#include "PIL_time.h"
-#include "BKE_utildefines.h"
 
 //-------------------------DOC STRINGS ---------------------------
 static char M_Mathutils_doc[] =

Modified: trunk/blender/source/blender/python/generic/bpy_internal_import.c
===================================================================
--- trunk/blender/source/blender/python/generic/bpy_internal_import.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/bpy_internal_import.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -28,7 +28,6 @@
 
 #include "bpy_internal_import.h"
 #include "DNA_text_types.h"
-#include "DNA_ID.h"
 
 #include "MEM_guardedalloc.h"
 #include "BKE_text.h" /* txt_to_buf */	

Modified: trunk/blender/source/blender/python/generic/euler.c
===================================================================
--- trunk/blender/source/blender/python/generic/euler.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/euler.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -30,10 +30,7 @@
 
 #include "BLI_math.h"
 #include "BKE_utildefines.h"
-#include "BLI_blenlib.h"
 
-#include "BLO_sys_types.h"
-
 //----------------------------------Mathutils.Euler() -------------------
 //makes a new euler for you to play with
 static PyObject *Euler_new(PyTypeObject * type, PyObject * args, PyObject * kwargs)

Modified: trunk/blender/source/blender/python/generic/quat.c
===================================================================
--- trunk/blender/source/blender/python/generic/quat.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/generic/quat.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -30,7 +30,6 @@
 
 #include "BLI_math.h"
 #include "BKE_utildefines.h"
-#include "BLI_blenlib.h"
 
 //-----------------------------METHODS------------------------------
 static char Quaternion_ToEuler_doc[] =

Modified: trunk/blender/source/blender/python/intern/bpy.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -25,7 +25,6 @@
 /* This file defines the '_bpy' module which is used by python's 'bpy' package.
  * a script writer should never directly access this module */
  
-#include <Python.h>
 
 #include "bpy_util.h" 
 #include "bpy_rna.h"
@@ -36,7 +35,6 @@
 #include "BLI_path_util.h"
  
  /* external util modules */
-#include "../generic/Mathutils.h"
 #include "../generic/Geometry.h"
 #include "../generic/bgl.h"
 #include "../generic/blf.h"

Modified: trunk/blender/source/blender/python/intern/bpy_app.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_app.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_app.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -23,10 +23,7 @@
  */
 
 #include "bpy_app.h"
-#include "bpy_util.h"
 
-#include "BLI_path_util.h"
-
 #include "BKE_blender.h"
 #include "BKE_global.h"
 #include "structseq.h"

Modified: trunk/blender/source/blender/python/intern/bpy_array.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_array.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_array.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -22,14 +22,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Python.h"
-
 #include "bpy_rna.h"
-
-#include "RNA_access.h"
-
-#include "BLI_string.h"
-
 #include "BKE_global.h"
 
 #define MAX_ARRAY_DIMENSION 10

Modified: trunk/blender/source/blender/python/intern/bpy_driver.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_driver.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_driver.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -28,7 +28,6 @@
 
 #include "BLI_listbase.h"
 
-#include "BPY_extern.h"
 #include "BKE_fcurve.h"
 #include "BKE_global.h"
 

Modified: trunk/blender/source/blender/python/intern/bpy_interface.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_interface.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_interface.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -23,10 +23,6 @@
  * ***** END GPL LICENSE BLOCK *****
  */
  
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
 
 
 /* grr, python redefines */
@@ -34,33 +30,19 @@
 #undef _POSIX_C_SOURCE
 #endif
 
-#include <Python.h>
-#include "compile.h"		/* for the PyCodeObject */
-#include "eval.h"		/* for PyEval_EvalCode */
 
 #include "bpy.h"
 #include "bpy_rna.h"
 #include "bpy_util.h"
 
-#ifndef WIN32
-#include <dirent.h>
-#else
-#include "BLI_winstuff.h"
-#endif
-
 #include "DNA_space_types.h"
 #include "DNA_text_types.h"
 
 #include "MEM_guardedalloc.h"
-
-#include "BLI_storage.h"
-#include "BLI_fileops.h"
-#include "BLI_string.h"
 #include "BLI_path_util.h"
 
 #include "BKE_context.h"
 #include "BKE_text.h"
-#include "BKE_context.h"
 #include "BKE_main.h"
 #include "BKE_global.h" /* only for script checking */
 
@@ -547,7 +529,7 @@
 // #define TIME_REGISTRATION
 
 #ifdef TIME_REGISTRATION
-#include "PIL_time.h"
+//(INCLUDE_LINT)#include "PIL_time.h"
 #endif
 
 

Modified: trunk/blender/source/blender/python/intern/bpy_operator.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_operator.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_operator.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -39,7 +39,6 @@
 
 #include "MEM_guardedalloc.h"
 #include "BKE_report.h"
-#include "BKE_utildefines.h"
 
 
 static PyObject *pyop_call( PyObject * self, PyObject * args)

Modified: trunk/blender/source/blender/python/intern/bpy_operator_wrap.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_operator_wrap.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_operator_wrap.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -24,15 +24,12 @@
  */
 
 #include "bpy_operator_wrap.h"
-#include "BKE_context.h"
 #include "WM_api.h"
 #include "WM_types.h"
 
 #include "RNA_define.h"
 
 #include "bpy_rna.h"
-#include "bpy_props.h"
-#include "bpy_util.h"
 
 static void operator_properties_init(wmOperatorType *ot)
 {

Modified: trunk/blender/source/blender/python/intern/bpy_props.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_props.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_props.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -26,14 +26,11 @@
 #include "bpy_rna.h"
 #include "bpy_util.h"
 
-#include "RNA_access.h"
 #include "RNA_define.h" /* for defining our own rna */
 #include "RNA_enum_types.h"
 
 #include "MEM_guardedalloc.h"
 
-#include "float.h" /* FLT_MIN/MAX */
-
 EnumPropertyItem property_flag_items[] = {
 	{PROP_HIDDEN, "HIDDEN", 0, "Hidden", ""},
 	{PROP_ANIMATABLE, "ANIMATABLE", 0, "Animateable", ""},

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -30,11 +30,8 @@
 //#include "blendef.h"
 #include "BLI_dynstr.h"
 #include "BLI_listbase.h"
-#include "BLI_string.h"
 #include "float.h" /* FLT_MIN/MAX */
 
-#include "RNA_access.h"
-#include "RNA_define.h" /* for defining our own rna */
 #include "RNA_enum_types.h"
 
 #include "MEM_guardedalloc.h"
@@ -57,7 +54,6 @@
 #include "../generic/Mathutils.h" /* so we can have mathutils callbacks */
 #include "../generic/IDProp.h" /* for IDprop lookups */
 
-#include <string.h>
 
 static PyObject *pyrna_prop_array_subscript_slice(BPy_PropertyRNA *self, PointerRNA *ptr, PropertyRNA *prop, int start, int stop, int length);
 static Py_ssize_t pyrna_prop_array_length(BPy_PropertyRNA *self);

Modified: trunk/blender/source/blender/python/intern/bpy_rna_callback.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna_callback.c	2010-03-14 14:26:46 UTC (rev 27483)
+++ trunk/blender/source/blender/python/intern/bpy_rna_callback.c	2010-03-14 16:06:43 UTC (rev 27484)
@@ -22,12 +22,10 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#include "Python.h"
 
 #include "bpy_rna.h"
 #include "bpy_util.h"
 
-#include "BLI_path_util.h"
 #include "DNA_screen_types.h"
 #include "BKE_context.h"
 #include "ED_space_api.h"


@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list