[Bf-blender-cvs] [b7c46bb7fae] temp-T96709-painting-target: Remove unused code.

Jeroen Bakker noreply at git.blender.org
Wed Apr 6 08:20:11 CEST 2022


Commit: b7c46bb7fae113aa2344094002c8ca003821975f
Author: Jeroen Bakker
Date:   Wed Apr 6 08:20:05 2022 +0200
Branches: temp-T96709-painting-target
https://developer.blender.org/rBb7c46bb7fae113aa2344094002c8ca003821975f

Remove unused code.

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

M	source/blender/blenkernel/BKE_pbvh.h
M	source/blender/blenkernel/intern/pbvh.c
M	source/blender/editors/include/ED_paint.h
M	source/blender/editors/space_view3d/space_view3d.c
M	source/blender/makesrna/intern/rna_space_api.c
M	source/blender/makesrna/intern/rna_workspace.c

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

diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h
index 0d481dece81..eadbe52d091 100644
--- a/source/blender/blenkernel/BKE_pbvh.h
+++ b/source/blender/blenkernel/BKE_pbvh.h
@@ -273,7 +273,6 @@ bool BKE_pbvh_bmesh_update_topology(PBVH *pbvh,
 void BKE_pbvh_node_mark_update(PBVHNode *node);
 void BKE_pbvh_node_mark_update_mask(PBVHNode *node);
 void BKE_pbvh_node_mark_update_color(PBVHNode *node);
-void BKE_pbvh_mark_update_color(PBVH *pbvh);
 void BKE_pbvh_node_mark_update_visibility(PBVHNode *node);
 void BKE_pbvh_node_mark_rebuild_draw(PBVHNode *node);
 void BKE_pbvh_node_mark_redraw(PBVHNode *node);
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index d8b2b341327..3ed3c7badc3 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -1724,13 +1724,6 @@ BMesh *BKE_pbvh_get_bmesh(PBVH *pbvh)
   return pbvh->bm;
 }
 
-void BKE_pbvh_mark_update_color(PBVH *pbvh)
-{
-  for (int n = 0; n < pbvh->totnode; n++) {
-    BKE_pbvh_node_mark_rebuild_draw(&pbvh->nodes[n]);
-  }
-}
-
 /***************************** Node Access ***********************************/
 
 void BKE_pbvh_node_mark_update(PBVHNode *node)
diff --git a/source/blender/editors/include/ED_paint.h b/source/blender/editors/include/ED_paint.h
index e222750499a..6b015895b60 100644
--- a/source/blender/editors/include/ED_paint.h
+++ b/source/blender/editors/include/ED_paint.h
@@ -20,8 +20,6 @@ struct UndoStep;
 struct UndoType;
 struct bContext;
 struct wmKeyConfig;
-struct wmMsgSubscribeKey;
-struct wmMsgSubscribeValue;
 struct wmOperator;
 
 /* paint_ops.c */
@@ -128,7 +126,7 @@ eV3DShadingColorType ED_paint_shading_color_override(struct bContext *C,
 
 /**
  * Does the given tool use a paint canvas.
- * 
+ *
  * When #tref isn't given the active tool from the context is used.
  */
 bool ED_paint_tool_use_canvas(struct bContext *C, struct bToolRef *tref);
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index f8790397547..6cb3d629e55 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -44,7 +44,6 @@
 
 #include "ED_object.h"
 #include "ED_outliner.h"
-#include "ED_paint.h"
 #include "ED_render.h"
 #include "ED_screen.h"
 #include "ED_space_api.h"
diff --git a/source/blender/makesrna/intern/rna_space_api.c b/source/blender/makesrna/intern/rna_space_api.c
index 580025ac17b..06bb2207b0a 100644
--- a/source/blender/makesrna/intern/rna_space_api.c
+++ b/source/blender/makesrna/intern/rna_space_api.c
@@ -14,7 +14,6 @@
 #  include "BKE_global.h"
 
 #  include "ED_fileselect.h"
-#  include "ED_paint.h"
 #  include "ED_screen.h"
 #  include "ED_text.h"
 
@@ -58,7 +57,6 @@ static void rna_SpaceTextEditor_region_location_from_cursor(
   }
 }
 
-
 #else
 
 void RNA_api_region_view3d(StructRNA *srna)
diff --git a/source/blender/makesrna/intern/rna_workspace.c b/source/blender/makesrna/intern/rna_workspace.c
index 87fe3101f15..0b6c3934985 100644
--- a/source/blender/makesrna/intern/rna_workspace.c
+++ b/source/blender/makesrna/intern/rna_workspace.c
@@ -28,7 +28,6 @@
 #  include "BKE_global.h"
 
 #  include "DNA_object_types.h"
-#  include "DNA_scene_types.h"
 #  include "DNA_screen_types.h"
 #  include "DNA_space_types.h"



More information about the Bf-blender-cvs mailing list