You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Cleanup unused engine code v2
This commit is contained in:
@@ -122,12 +122,6 @@ int EditorSelectionHistory::get_history_pos() {
|
||||
return current_elem_idx;
|
||||
}
|
||||
|
||||
bool EditorSelectionHistory::is_history_obj_inspector_only(int p_obj) const {
|
||||
ERR_FAIL_INDEX_V(p_obj, history.size(), false);
|
||||
ERR_FAIL_INDEX_V(history[p_obj].level, history[p_obj].path.size(), false);
|
||||
return history[p_obj].path[history[p_obj].level].inspector_only;
|
||||
}
|
||||
|
||||
ObjectID EditorSelectionHistory::get_history_obj(int p_obj) const {
|
||||
ERR_FAIL_INDEX_V(p_obj, history.size(), ObjectID());
|
||||
ERR_FAIL_INDEX_V(history[p_obj].level, history[p_obj].path.size(), ObjectID());
|
||||
@@ -351,18 +345,6 @@ void EditorData::apply_changes_in_editors() {
|
||||
}
|
||||
}
|
||||
|
||||
void EditorData::save_editor_global_states() {
|
||||
for (int i = 0; i < editor_plugins.size(); i++) {
|
||||
editor_plugins[i]->save_global_state();
|
||||
}
|
||||
}
|
||||
|
||||
void EditorData::restore_editor_global_states() {
|
||||
for (int i = 0; i < editor_plugins.size(); i++) {
|
||||
editor_plugins[i]->restore_global_state();
|
||||
}
|
||||
}
|
||||
|
||||
void EditorData::paste_object_params(Object *p_object) {
|
||||
ERR_FAIL_NULL(p_object);
|
||||
undo_redo_manager->create_action(TTR("Paste Params"));
|
||||
|
||||
Reference in New Issue
Block a user