[Bf-blender-cvs] [f6cbb1d066b] soc-2020-info-editor: Cleanup: remove unused includes and format files

Mateusz Grzeliński noreply at git.blender.org
Mon Aug 17 21:24:33 CEST 2020


Commit: f6cbb1d066beae62d50f923deb9f8f1b2b9677ea
Author: Mateusz Grzeliński
Date:   Mon Aug 17 14:00:49 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBf6cbb1d066beae62d50f923deb9f8f1b2b9677ea

Cleanup: remove unused includes and format files

===================================================================

M	source/blender/editors/space_info/info_clog.c
M	source/blender/editors/space_info/info_draw_clog.c
M	source/blender/editors/space_info/info_ops.c
M	source/blender/editors/space_info/info_report.c
M	source/blender/editors/space_info/info_stats.c
M	source/blender/editors/space_info/space_info.c
M	source/blender/makesrna/intern/rna_space.c

===================================================================

diff --git a/source/blender/editors/space_info/info_clog.c b/source/blender/editors/space_info/info_clog.c
index 3e73416ef16..31e269ccfab 100644
--- a/source/blender/editors/space_info/info_clog.c
+++ b/source/blender/editors/space_info/info_clog.c
@@ -18,9 +18,7 @@
  * \ingroup spinfo
  */
 
-#include <assert.h>
 #include <limits.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "MEM_guardedalloc.h"
diff --git a/source/blender/editors/space_info/info_draw_clog.c b/source/blender/editors/space_info/info_draw_clog.c
index e6d14ea9119..a83aa486b54 100644
--- a/source/blender/editors/space_info/info_draw_clog.c
+++ b/source/blender/editors/space_info/info_draw_clog.c
@@ -23,22 +23,15 @@
 #include <CLG_log.h>
 #include <DNA_text_types.h>
 #include <MEM_guardedalloc.h>
-#include <limits.h>
 #include <string.h>
 
-#include "BKE_report.h"
 #include "BLI_utildefines.h"
-#include "DNA_screen_types.h"
 #include "DNA_space_types.h"
 #include "GPU_framebuffer.h"
-#include "UI_interface.h"
 #include "UI_resources.h"
-#include "UI_view2d.h"
 #include "info_intern.h"
 #include "textview.h"
 
-#include "../space_text/text_format.h"
-
 enum eTextViewContext_LineDrawFlag clog_line_draw_data(struct TextViewContext *tvc,
                                                        uchar fg[4],
                                                        uchar bg[4],
diff --git a/source/blender/editors/space_info/info_ops.c b/source/blender/editors/space_info/info_ops.c
index 3cae6a77bc8..ae2f51c5cfa 100644
--- a/source/blender/editors/space_info/info_ops.c
+++ b/source/blender/editors/space_info/info_ops.c
@@ -22,7 +22,6 @@
  */
 
 #include <ED_screen.h>
-#include <stdio.h>
 #include <string.h>
 
 #include "DNA_packedFile_types.h"
@@ -53,8 +52,6 @@
 #include "UI_interface.h"
 #include "UI_resources.h"
 
-#include "IMB_imbuf_types.h"
-
 #include "RNA_access.h"
 #include "RNA_define.h"
 
diff --git a/source/blender/editors/space_info/info_report.c b/source/blender/editors/space_info/info_report.c
index 350d22bcde8..3e813f55540 100644
--- a/source/blender/editors/space_info/info_report.c
+++ b/source/blender/editors/space_info/info_report.c
@@ -18,10 +18,7 @@
  * \ingroup spinfo
  */
 
-#include <BKE_report.h>
-#include <assert.h>
 #include <limits.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "MEM_guardedalloc.h"
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c
index 4e91da01cc9..4593441dfcb 100644
--- a/source/blender/editors/space_info/info_stats.c
+++ b/source/blender/editors/space_info/info_stats.c
@@ -18,13 +18,11 @@
  * \ingroup spinfo
  */
 
-#include <stdio.h>
 #include <string.h>
 
 #include "MEM_guardedalloc.h"
 
 #include "DNA_armature_types.h"
-#include "DNA_collection_types.h"
 #include "DNA_curve_types.h"
 #include "DNA_gpencil_types.h"
 #include "DNA_lattice_types.h"
@@ -35,7 +33,6 @@
 
 #include "BLF_api.h"
 
-#include "BLI_listbase.h"
 #include "BLI_math.h"
 #include "BLI_string.h"
 #include "BLI_utildefines.h"
@@ -53,7 +50,6 @@
 #include "BKE_main.h"
 #include "BKE_object.h"
 #include "BKE_paint.h"
-#include "BKE_particle.h"
 #include "BKE_scene.h"
 #include "BKE_subdiv_ccg.h"
 
diff --git a/source/blender/editors/space_info/space_info.c b/source/blender/editors/space_info/space_info.c
index 1b976ac3675..4e1e92dabc3 100644
--- a/source/blender/editors/space_info/space_info.c
+++ b/source/blender/editors/space_info/space_info.c
@@ -21,10 +21,7 @@
  * \ingroup spinfo
  */
 
-#include <BKE_global.h>
 #include <BKE_main.h>
-#include <BKE_report.h>
-#include <stdio.h>
 #include <string.h>
 
 #include "MEM_guardedalloc.h"
@@ -32,8 +29,6 @@
 #include "BLI_blenlib.h"
 #include "BLI_utildefines.h"
 
-#include "BLT_translation.h"
-
 #include "BKE_context.h"
 #include "BKE_screen.h"
 
@@ -46,11 +41,9 @@
 
 #include "RNA_access.h"
 
-#include "UI_interface.h"
 #include "UI_resources.h"
 #include "UI_view2d.h"
 
-#include "BLO_readfile.h"
 #include "GPU_framebuffer.h"
 #include "info_intern.h" /* own include */
 
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 27456ba9732..066d020514d 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -6082,19 +6082,22 @@ static void rna_def_space_info(BlenderRNA *brna)
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_INFO_REPORT, NULL);
 
   prop = RNA_def_property(srna, "show_report_error_invalid_input", PROP_BOOLEAN, PROP_NONE);
-  RNA_def_property_boolean_negative_sdna(prop, NULL, "report_mask_exclude", RPT_ERROR_INVALID_INPUT);
+  RNA_def_property_boolean_negative_sdna(
+      prop, NULL, "report_mask_exclude", RPT_ERROR_INVALID_INPUT);
   RNA_def_property_ui_text(prop, "Show Error", "Display error text");
   RNA_def_property_ui_icon(prop, ICON_CANCEL, 0);
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_INFO_REPORT, NULL);
 
   prop = RNA_def_property(srna, "show_report_error_invalid_context", PROP_BOOLEAN, PROP_NONE);
-  RNA_def_property_boolean_negative_sdna(prop, NULL, "report_mask_exclude", RPT_ERROR_INVALID_CONTEXT);
+  RNA_def_property_boolean_negative_sdna(
+      prop, NULL, "report_mask_exclude", RPT_ERROR_INVALID_CONTEXT);
   RNA_def_property_ui_text(prop, "Show Error", "Display error text");
   RNA_def_property_ui_icon(prop, ICON_CANCEL, 0);
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_INFO_REPORT, NULL);
 
   prop = RNA_def_property(srna, "show_report_error_out_of_memory", PROP_BOOLEAN, PROP_NONE);
-  RNA_def_property_boolean_negative_sdna(prop, NULL, "report_mask_exclude", RPT_ERROR_OUT_OF_MEMORY);
+  RNA_def_property_boolean_negative_sdna(
+      prop, NULL, "report_mask_exclude", RPT_ERROR_OUT_OF_MEMORY);
   RNA_def_property_ui_text(prop, "Show Error", "Display error text");
   RNA_def_property_ui_icon(prop, ICON_CANCEL, 0);
   RNA_def_property_update(prop, NC_SPACE | ND_SPACE_INFO_REPORT, NULL);



More information about the Bf-blender-cvs mailing list