diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-27 11:04:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-27 11:04:44 +0300 |
commit | 4b206d9a5135ffd2be25726b65e8205bcfa7878e (patch) | |
tree | 0d20144066fde33aecd77c77e58e86dc6d16b52f /source/blender/editors | |
parent | 92686c667e713b4e05378324af26e0a43a3f8c5d (diff) |
Cleanup: remove unused function
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_undo.c | 10 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 1 |
2 files changed, 2 insertions, 9 deletions
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 */ |