]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/level_editor/undo_history.h
Merge pull request #1046 from tsoding/704
[nothing.git] / src / game / level / level_editor / undo_history.h
index 37d10b16d8a74bf5d838d9f8ddcaee4a689aeb7c..f9623f38f9c7f9bbc06608a49847ec81f94f8f22 100644 (file)
@@ -3,13 +3,7 @@
 
 #include "stack.h"
 
-typedef enum {
-    UNDO_ADD,
-    UNDO_DELETE,
-    UNDO_UPDATE
-} UndoType;
-
-typedef void (*RevertAction)(void *layer, void *context, size_t context_size);
+typedef void (*RevertAction)(void *context, size_t context_size);
 
 typedef struct {
     Stack actions;
@@ -22,7 +16,6 @@ void destroy_undo_history(UndoHistory undo_history)
 }
 
 void undo_history_push(UndoHistory *undo_history,
-                       void *layer,
                        RevertAction revert,
                        void *context_data,
                        size_t context_data_size);