Cleanup: unused headers
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Feb 2020 00:51:12 +0000 (11:51 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Feb 2020 00:54:50 +0000 (11:54 +1100)
source/blender/blenkernel/intern/lib_id.c
source/blender/blenkernel/intern/lib_id_delete.c
source/blender/blenkernel/intern/lib_override.c
source/blender/blenkernel/intern/lib_query.c
source/blender/blenkernel/intern/lib_remap.c

index d1dd325a4df700742f20b4bc5bcc2ea778554c67..18faf00d60f883e55a730132caf3b638189f8524 100644 (file)
 #include "DNA_material_types.h"
 #include "DNA_mesh_types.h"
 #include "DNA_meta_types.h"
-#include "DNA_modifier_types.h"
 #include "DNA_movieclip_types.h"
 #include "DNA_mask_types.h"
 #include "DNA_node_types.h"
 #include "DNA_object_types.h"
 #include "DNA_lightprobe_types.h"
-#include "DNA_rigidbody_types.h"
 #include "DNA_scene_types.h"
 #include "DNA_screen_types.h"
 #include "DNA_speaker_types.h"
@@ -70,7 +68,6 @@
 
 #include "BLI_utildefines.h"
 
-#include "BLI_bitmap.h"
 #include "BLI_blenlib.h"
 #include "BLI_ghash.h"
 #include "BLI_linklist.h"
 #include "BKE_lib_remap.h"
 #include "BKE_linestyle.h"
 #include "BKE_mesh.h"
-#include "BKE_mesh_runtime.h"
 #include "BKE_material.h"
 #include "BKE_main.h"
 #include "BKE_mball.h"
 #include "BKE_object.h"
 #include "BKE_paint.h"
 #include "BKE_particle.h"
-#include "BKE_packedFile.h"
 #include "BKE_lightprobe.h"
 #include "BKE_rigidbody.h"
 #include "BKE_sound.h"
 
 #include "RNA_access.h"
 
-#include "IMB_imbuf.h"
-#include "IMB_imbuf_types.h"
-
 #include "atomic_ops.h"
 
 //#define DEBUG_TIME
index dd97a420ba6d685dfd793c9191b818bb9da461d6..f2fa6946d4bfb7bccb83d6033e860ff54a9300d2 100644 (file)
  * Contains management of ID's for freeing & deletion.
  */
 
-#include "CLG_log.h"
-
 #include "MEM_guardedalloc.h"
 
 /* all types are needed here, in order to do memory operations */
-#include "DNA_anim_types.h"
 #include "DNA_armature_types.h"
 #include "DNA_brush_types.h"
 #include "DNA_camera_types.h"
@@ -66,7 +63,6 @@
 #include "BKE_cachefile.h"
 #include "BKE_collection.h"
 #include "BKE_curve.h"
-#include "BKE_fcurve.h"
 #include "BKE_font.h"
 #include "BKE_gpencil.h"
 #include "BKE_idprop.h"
index 8fecad5a9751e17a863d8ebda9487c09e1763e2e..af861b5b0e9617b7f2f2879053780990d1130926 100644 (file)
@@ -45,9 +45,6 @@
 #include "RNA_access.h"
 #include "RNA_types.h"
 
-#include "PIL_time.h"
-#include "PIL_time_utildefines.h"
-
 #define OVERRIDE_AUTO_CHECK_DELAY 0.2 /* 200ms between auto-override checks. */
 
 static void lib_override_library_property_copy(IDOverrideLibraryProperty *op_dst,
index 09e7be591cdc6446b825d03e52df05c32fa104c0..cf4c96a70e9a277c471d548624e6ae6fa7e5916f 100644 (file)
@@ -23,8 +23,6 @@
 
 #include <stdlib.h>
 
-#include "MEM_guardedalloc.h"
-
 #include "DNA_anim_types.h"
 #include "DNA_armature_types.h"
 #include "DNA_brush_types.h"
@@ -38,7 +36,6 @@
 #include "DNA_linestyle_types.h"
 #include "DNA_material_types.h"
 #include "DNA_mesh_types.h"
-#include "DNA_meshdata_types.h"
 #include "DNA_meta_types.h"
 #include "DNA_movieclip_types.h"
 #include "DNA_mask_types.h"
@@ -76,7 +73,6 @@
 #include "BKE_rigidbody.h"
 #include "BKE_sequencer.h"
 #include "BKE_shader_fx.h"
-#include "BKE_tracking.h"
 #include "BKE_workspace.h"
 
 #define FOREACH_FINALIZE _finalize
index e9cc0dfc9726e8abe028747be0519c3cc67b0e06..9b6d62a87aa00b6eabcd38ce19c47eddabb4e22d 100644 (file)
 
 #include "CLG_log.h"
 
-#include "MEM_guardedalloc.h"
-
 #include "BLI_utildefines.h"
 
-#include "BLI_rect.h"
-
 #include "DNA_object_types.h"
 
-#include "BKE_animsys.h"
 #include "BKE_armature.h"
 #include "BKE_collection.h"
 #include "BKE_curve.h"
 #include "BKE_node.h"
 #include "BKE_object.h"
 
-#include "lib_intern.h"
-
 #include "DEG_depsgraph.h"
 #include "DEG_depsgraph_build.h"
 
+#include "lib_intern.h" /* own include */
+
 static CLG_LogRef LOG = {.identifier = "bke.lib_remap"};
 
 BKE_library_free_window_manager_cb free_windowmanager_cb = NULL;