Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-03-14 19:06:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-14 19:06:43 +0300
commit431db9d478dc48bcabe9859efd320f8210b5eeda (patch)
tree7d3181fa7a9629635d09bc78542db454005c298d /source/blender
parentb2fba2eebe84386e78d8c925d0b14d3dd5746b81 (diff)
remove unused includes
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/python/generic/Geometry.c5
-rw-r--r--source/blender/python/generic/IDProp.c5
-rw-r--r--source/blender/python/generic/Mathutils.c2
-rw-r--r--source/blender/python/generic/bpy_internal_import.c1
-rw-r--r--source/blender/python/generic/euler.c3
-rw-r--r--source/blender/python/generic/quat.c1
-rw-r--r--source/blender/python/intern/bpy.c2
-rw-r--r--source/blender/python/intern/bpy_app.c3
-rw-r--r--source/blender/python/intern/bpy_array.c7
-rw-r--r--source/blender/python/intern/bpy_driver.c1
-rw-r--r--source/blender/python/intern/bpy_interface.c20
-rw-r--r--source/blender/python/intern/bpy_operator.c1
-rw-r--r--source/blender/python/intern/bpy_operator_wrap.c3
-rw-r--r--source/blender/python/intern/bpy_props.c3
-rw-r--r--source/blender/python/intern/bpy_rna.c4
-rw-r--r--source/blender/python/intern/bpy_rna_callback.c2
-rw-r--r--source/blender/python/intern/bpy_util.c2
17 files changed, 1 insertions, 64 deletions
diff --git a/source/blender/python/generic/Geometry.c b/source/blender/python/generic/Geometry.c
index fecad5904d2..f204fa62904 100644
--- a/source/blender/python/generic/Geometry.c
+++ b/source/blender/python/generic/Geometry.c
@@ -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"
diff --git a/source/blender/python/generic/IDProp.c b/source/blender/python/generic/IDProp.c
index decc28198ff..eb883be5a56 100644
--- a/source/blender/python/generic/IDProp.c
+++ b/source/blender/python/generic/IDProp.c
@@ -23,14 +23,9 @@
* ***** 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))
diff --git a/source/blender/python/generic/Mathutils.c b/source/blender/python/generic/Mathutils.c
index fc21c26dd74..1cf4d2254ea 100644
--- a/source/blender/python/generic/Mathutils.c
+++ b/source/blender/python/generic/Mathutils.c
@@ -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[] =
diff --git a/source/blender/python/generic/bpy_internal_import.c b/source/blender/python/generic/bpy_internal_import.c
index 873398e7763..fc0cd3fc18b 100644
--- a/source/blender/python/generic/bpy_internal_import.c
+++ b/source/blender/python/generic/bpy_internal_import.c
@@ -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 */
diff --git a/source/blender/python/generic/euler.c b/source/blender/python/generic/euler.c
index 84360a76e61..3c018333b39 100644
--- a/source/blender/python/generic/euler.c
+++ b/source/blender/python/generic/euler.c
@@ -30,9 +30,6 @@
#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
diff --git a/source/blender/python/generic/quat.c b/source/blender/python/generic/quat.c
index 3a9617c05c4..b08383cb508 100644
--- a/source/blender/python/generic/quat.c
+++ b/source/blender/python/generic/quat.c
@@ -30,7 +30,6 @@
#include "BLI_math.h"
#include "BKE_utildefines.h"
-#include "BLI_blenlib.h"
//-----------------------------METHODS------------------------------
static char Quaternion_ToEuler_doc[] =
diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c
index 222e41c3bb8..0e105e03184 100644
--- a/source/blender/python/intern/bpy.c
+++ b/source/blender/python/intern/bpy.c
@@ -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"
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 59c1c0bf7c2..be0406ce7c7 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -23,9 +23,6 @@
*/
#include "bpy_app.h"
-#include "bpy_util.h"
-
-#include "BLI_path_util.h"
#include "BKE_blender.h"
#include "BKE_global.h"
diff --git a/source/blender/python/intern/bpy_array.c b/source/blender/python/intern/bpy_array.c
index bb1826d231d..a20a7f54e22 100644
--- a/source/blender/python/intern/bpy_array.c
+++ b/source/blender/python/intern/bpy_array.c
@@ -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
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c
index f628e7e8569..de2f1837226 100644
--- a/source/blender/python/intern/bpy_driver.c
+++ b/source/blender/python/intern/bpy_driver.c
@@ -28,7 +28,6 @@
#include "BLI_listbase.h"
-#include "BPY_extern.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 4160d56ba25..a4acaba8611 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -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 @@ int BPY_run_python_script_space(const char *modulename, const char *func)
// #define TIME_REGISTRATION
#ifdef TIME_REGISTRATION
-#include "PIL_time.h"
+//(INCLUDE_LINT)#include "PIL_time.h"
#endif
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index b2a8f5be097..0e54f158ac4 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -39,7 +39,6 @@
#include "MEM_guardedalloc.h"
#include "BKE_report.h"
-#include "BKE_utildefines.h"
static PyObject *pyop_call( PyObject * self, PyObject * args)
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c
index 21ba815d95f..56d49fcc889 100644
--- a/source/blender/python/intern/bpy_operator_wrap.c
+++ b/source/blender/python/intern/bpy_operator_wrap.c
@@ -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)
{
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index 154f20e57c7..5bddd52dadf 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -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", ""},
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index 90de107d990..0c6709dff24 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -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);
diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c
index c71429a76af..a49a534c61f 100644
--- a/source/blender/python/intern/bpy_rna_callback.c
+++ b/source/blender/python/intern/bpy_rna_callback.c
@@ -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 --git a/source/blender/python/intern/bpy_util.c b/source/blender/python/intern/bpy_util.c
index bd80b89cdc1..a2bcfa63c31 100644
--- a/source/blender/python/intern/bpy_util.c
+++ b/source/blender/python/intern/bpy_util.c
@@ -22,8 +22,6 @@
* ***** END GPL LICENSE BLOCK *****
*/
-#include "DNA_listBase.h"
-#include "RNA_access.h"
#include "bpy_util.h"
#include "BLI_dynstr.h"
#include "MEM_guardedalloc.h"