[Bf-blender-cvs] [4b206d9a513] master: Cleanup: remove unused function

Campbell Barton noreply at git.blender.org
Fri Sep 27 10:05:42 CEST 2019


Commit: 4b206d9a5135ffd2be25726b65e8205bcfa7878e
Author: Campbell Barton
Date:   Fri Sep 27 18:04:44 2019 +1000
Branches: master
https://developer.blender.org/rB4b206d9a5135ffd2be25726b65e8205bcfa7878e

Cleanup: remove unused function

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

M	source/blender/editors/sculpt_paint/paint_image_undo.c
M	source/blender/editors/sculpt_paint/paint_intern.h

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

diff --git a/source/blender/editors/sculpt_paint/paint_image_undo.c b/source/blender/editors/sculpt_paint/paint_image_undo.c
index 496db9793b7..6b095188ba4 100644
--- a/source/blender/editors/sculpt_paint/paint_image_undo.c
+++ b/source/blender/editors/sculpt_paint/paint_image_undo.c
@@ -569,12 +569,6 @@ void ED_image_undosys_type(UndoType *ut)
 /** \name Utilities
  * \{ */
 
-ListBase *ED_image_undosys_step_get_tiles(UndoStep *us_p)
-{
-  ImageUndoStep *us = (ImageUndoStep *)us_p;
-  return &us->tiles;
-}
-
 ListBase *ED_image_undo_get_tiles(void)
 {
   UndoStack *ustack = ED_undo_stack_get();
@@ -588,13 +582,13 @@ ListBase *ED_image_undo_get_tiles(void)
     /* Fallback value until we can be sure this never happens. */
     us->paint_mode = PAINT_MODE_TEXTURE_2D;
   }
-  return ED_image_undosys_step_get_tiles(us_p);
+  return &us->tiles;
 }
 
 /* restore painting image to previous state. Used for anchored and drag-dot style brushes*/
 void ED_image_undo_restore(UndoStep *us)
 {
-  ListBase *lb = ED_image_undosys_step_get_tiles(us);
+  ListBase *lb = &((ImageUndoStep *)us)->tiles;
   image_undo_restore_runtime(lb);
   image_undo_invalidate();
 }
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h
index 5efedf69fe4..8be474880a5 100644
--- a/source/blender/editors/sculpt_paint/paint_intern.h
+++ b/source/blender/editors/sculpt_paint/paint_intern.h
@@ -274,7 +274,6 @@ void image_undo_remove_masks(void);
 void image_undo_init_locks(void);
 void image_undo_end_locks(void);
 
-struct ListBase *ED_image_undosys_step_get_tiles(struct UndoStep *us_p);
 struct ListBase *ED_image_undo_get_tiles(void);
 
 /* sculpt_uv.c */



More information about the Bf-blender-cvs mailing list