From 9d1de621e2a7505ef7260df8a34b670e99f94a67 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 24 Mar 2018 12:46:25 +0100 Subject: Cleanup: move undo opcodes out of public header --- source/blender/blenkernel/BKE_text.h | 41 ------------------------------------ 1 file changed, 41 deletions(-) (limited to 'source/blender/blenkernel/BKE_text.h') diff --git a/source/blender/blenkernel/BKE_text.h b/source/blender/blenkernel/BKE_text.h index 14d3318e059..b3b1ad23b32 100644 --- a/source/blender/blenkernel/BKE_text.h +++ b/source/blender/blenkernel/BKE_text.h @@ -135,47 +135,6 @@ enum { TXT_MOVE_LINE_DOWN = 1 }; - -/* Undo opcodes */ - -/* Complex editing */ -/* 1 - opcode is followed by 1 byte for ascii character and opcode (repeat)) */ -/* 2 - opcode is followed by 2 bytes for utf-8 character and opcode (repeat)) */ -/* 3 - opcode is followed by 3 bytes for utf-8 character and opcode (repeat)) */ -/* 4 - opcode is followed by 4 bytes for unicode character and opcode (repeat)) */ -#define UNDO_INSERT_1 013 -#define UNDO_INSERT_2 014 -#define UNDO_INSERT_3 015 -#define UNDO_INSERT_4 016 - -#define UNDO_BS_1 017 -#define UNDO_BS_2 020 -#define UNDO_BS_3 021 -#define UNDO_BS_4 022 - -#define UNDO_DEL_1 023 -#define UNDO_DEL_2 024 -#define UNDO_DEL_3 025 -#define UNDO_DEL_4 026 - -/* Text block (opcode is followed - * by 4 character length ID + the text - * block itself + the 4 character length - * ID (repeat) and opcode (repeat)) */ -#define UNDO_DBLOCK 027 /* Delete block */ -#define UNDO_IBLOCK 030 /* Insert block */ - -/* Misc */ -#define UNDO_INDENT 032 -#define UNDO_UNINDENT 033 -#define UNDO_COMMENT 034 -#define UNDO_UNCOMMENT 035 - -#define UNDO_MOVE_LINES_UP 036 -#define UNDO_MOVE_LINES_DOWN 037 - -#define UNDO_DUPLICATE 040 - #ifdef __cplusplus } #endif -- cgit v1.2.3