diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-07 02:09:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-07 02:09:56 +0300 |
commit | a5869c367e660b52f0b90f89b2405944db434156 (patch) | |
tree | bad9750b4972d80ce3854735a8c2749d869585b9 /source/blender/blenkernel | |
parent | 9df460203517a791107c6da816ab21ace803d5f4 (diff) |
Cleanup: remove unnecessary undo function
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_undo_system.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/undo_system.c | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/blenkernel/BKE_undo_system.h b/source/blender/blenkernel/BKE_undo_system.h index d99e6f02bdb..ebf50b8ceec 100644 --- a/source/blender/blenkernel/BKE_undo_system.h +++ b/source/blender/blenkernel/BKE_undo_system.h @@ -156,7 +156,6 @@ bool BKE_undosys_step_redo(UndoStack *ustack, struct bContext *C); bool BKE_undosys_step_load_data(UndoStack *ustack, struct bContext *C, UndoStep *us); -bool BKE_undosys_step_undo_compat_only(UndoStack *ustack, struct bContext *C, int step); void BKE_undosys_step_undo_from_index(UndoStack *ustack, struct bContext *C, int index); UndoStep *BKE_undosys_step_same_type_next(UndoStep *us); UndoStep *BKE_undosys_step_same_type_prev(UndoStep *us); diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c index 158c165655a..46a69b01d8e 100644 --- a/source/blender/blenkernel/intern/undo_system.c +++ b/source/blender/blenkernel/intern/undo_system.c @@ -767,18 +767,6 @@ bool BKE_undosys_step_load_data(UndoStack *ustack, bContext *C, UndoStep *us) return ok; } -bool BKE_undosys_step_undo_compat_only(UndoStack *ustack, bContext *C, int step) -{ - if (step == 0) { - return BKE_undosys_step_undo_with_data(ustack, C, ustack->step_active); - } - else if (step == 1) { - return BKE_undosys_step_undo(ustack, C); - } - else { - return BKE_undosys_step_redo(ustack, C); - } -} /** * Similar to #WM_operatortype_append */ |