From 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Dec 2021 00:55:11 +1100 Subject: Cleanup: move public doc-strings into headers for 'editors' Ref T92709 --- source/blender/editors/interface/interface_undo.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source/blender/editors/interface/interface_undo.c') diff --git a/source/blender/editors/interface/interface_undo.c b/source/blender/editors/interface/interface_undo.c index 40f196d9b45..6916e1080b6 100644 --- a/source/blender/editors/interface/interface_undo.c +++ b/source/blender/editors/interface/interface_undo.c @@ -91,11 +91,6 @@ const char *ui_textedit_undo(uiUndoStack_Text *stack, int direction, int *r_curs return ui_textedit_redo_impl(stack, r_cursor_index); } -/** - * Push the information in the arguments to a new state in the undo stack. - * - * \note Currently the total length of the undo stack is not limited. - */ void ui_textedit_undo_push(uiUndoStack_Text *stack, const char *text, int cursor_index) { /* Clear all redo actions from the current state. */ @@ -114,11 +109,7 @@ void ui_textedit_undo_push(uiUndoStack_Text *stack, const char *text, int cursor memcpy(stack->current->text, text, text_size); BLI_addtail(&stack->states, stack->current); } -/** - * Start the undo stack. - * - * \note The current state should be pushed immediately after calling this. - */ + uiUndoStack_Text *ui_textedit_undo_stack_create(void) { uiUndoStack_Text *stack = MEM_mallocN(sizeof(uiUndoStack_Text), __func__); -- cgit v1.2.3