diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-18 00:43:54 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-18 00:43:54 +0200 |
commit | 24115beb3c69e648b1d48f969785b9b0729e1be8 (patch) | |
tree | cef9b766b818df322a81e13af6537863479deeb4 | |
parent | 09d1ebb7aed4de4cc63e88d8e89a56c647b0d902 (diff) | |
parent | 6cec00b0994ad16160f4909189965933c0e1b51f (diff) | |
download | redot-engine-24115beb3c69e648b1d48f969785b9b0729e1be8.tar.gz |
Merge pull request #66000 from KoBeWi/clear_'_clear_undo_history'
Remove unused `_clear_undo_history` method
-rw-r--r-- | editor/editor_node.cpp | 6 | ||||
-rw-r--r-- | editor/editor_node.h | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 8eaddcb7e1..893fc6f8f3 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3668,10 +3668,6 @@ bool EditorNode::is_changing_scene() const { return changing_scene; } -void EditorNode::_clear_undo_history() { - get_undo_redo()->clear_history(false); -} - void EditorNode::set_current_scene(int p_idx) { // Save the folding in case the scene gets reloaded. if (editor_data.get_scene_path(p_idx) != "" && editor_data.get_edited_scene_root(p_idx)) { @@ -5981,8 +5977,6 @@ void EditorNode::_bind_methods() { ClassDB::bind_method("_set_main_scene_state", &EditorNode::_set_main_scene_state); ClassDB::bind_method("_update_recent_scenes", &EditorNode::_update_recent_scenes); - ClassDB::bind_method("_clear_undo_history", &EditorNode::_clear_undo_history); - ClassDB::bind_method("edit_item_resource", &EditorNode::edit_item_resource); ClassDB::bind_method(D_METHOD("get_gui_base"), &EditorNode::get_gui_base); diff --git a/editor/editor_node.h b/editor/editor_node.h index 200d68908c..9b3f052c0e 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -658,8 +658,6 @@ private: void _update_layouts_menu(); void _layout_menu_option(int p_id); - void _clear_undo_history(); - void _update_addon_config(); void _toggle_distraction_free_mode(); |