From 1e4aab36c237b751c23be161217d989472bfaf20 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 26 Jan 2019 20:41:52 +1100 Subject: Cleanup: remove redundant BKE/BLI/BIF headers --- source/blender/python/intern/bpy_app_translations.c | 7 +++++-- source/blender/python/intern/bpy_driver.c | 1 - source/blender/python/intern/bpy_operator.c | 1 - source/blender/python/intern/bpy_rna_array.c | 1 - source/blender/python/intern/bpy_rna_callback.c | 1 - source/blender/python/intern/bpy_rna_gizmo.c | 1 - 6 files changed, 5 insertions(+), 7 deletions(-) (limited to 'source/blender/python/intern') diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c index acb44f86f75..0f5f72328be 100644 --- a/source/blender/python/intern/bpy_app_translations.c +++ b/source/blender/python/intern/bpy_app_translations.c @@ -33,8 +33,6 @@ #include #include "BLI_utildefines.h" -#include "BLI_string.h" -#include "BLI_ghash.h" #include "BPY_extern.h" #include "bpy_app_translations.h" @@ -48,6 +46,11 @@ #include "../generic/python_utildefines.h" +#ifdef WITH_INTERNATIONAL +# include "BLI_string.h" +# include "BLI_ghash.h" +#endif + typedef struct { PyObject_HEAD /* The string used to separate context from actual message in PY_TRANSLATE RNA props. */ diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c index f098a28d679..cd6a06556cf 100644 --- a/source/blender/python/intern/bpy_driver.c +++ b/source/blender/python/intern/bpy_driver.c @@ -37,7 +37,6 @@ #include "BLI_listbase.h" #include "BLI_math_base.h" -#include "BLI_string.h" #include "BKE_fcurve.h" #include "BKE_global.h" diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index 56db0a604aa..5637c081435 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -37,7 +37,6 @@ #include "BLI_utildefines.h" #include "BLI_listbase.h" -#include "BLI_string.h" #include "BPY_extern.h" #include "bpy_operator.h" diff --git a/source/blender/python/intern/bpy_rna_array.c b/source/blender/python/intern/bpy_rna_array.c index 9a184df8054..a93f75f87d4 100644 --- a/source/blender/python/intern/bpy_rna_array.c +++ b/source/blender/python/intern/bpy_rna_array.c @@ -35,7 +35,6 @@ #include "RNA_types.h" #include "bpy_rna.h" -#include "BKE_global.h" #include "MEM_guardedalloc.h" diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c index ed29aa795e6..450d39e84ed 100644 --- a/source/blender/python/intern/bpy_rna_callback.c +++ b/source/blender/python/intern/bpy_rna_callback.c @@ -33,7 +33,6 @@ #include "RNA_types.h" #include "BLI_utildefines.h" -#include "BLI_listbase.h" #include "bpy_rna.h" #include "bpy_rna_callback.h" diff --git a/source/blender/python/intern/bpy_rna_gizmo.c b/source/blender/python/intern/bpy_rna_gizmo.c index 8189431dfc9..b7db459279b 100644 --- a/source/blender/python/intern/bpy_rna_gizmo.c +++ b/source/blender/python/intern/bpy_rna_gizmo.c @@ -32,7 +32,6 @@ #include "BLI_utildefines.h" #include "BLI_alloca.h" -#include "BKE_main.h" #include "WM_api.h" #include "WM_types.h" -- cgit v1.2.3