diff --git a/editor/editor_command_palette.cpp b/editor/editor_command_palette.cpp index 6626251ee67..337271ea3d8 100644 --- a/editor/editor_command_palette.cpp +++ b/editor/editor_command_palette.cpp @@ -92,8 +92,6 @@ void EditorCommandPalette::_update_command_search(const String &search_text) { } } - command_keys.clear(); - TreeItem *root = search_options->get_root(); root->clear_children(); diff --git a/editor/editor_command_palette.h b/editor/editor_command_palette.h index 01fa6896a9e..5d666aeaa34 100644 --- a/editor/editor_command_palette.h +++ b/editor/editor_command_palette.h @@ -77,8 +77,6 @@ class EditorCommandPalette : public ConfirmationDialog { HashMap commands; HashMap>> unregistered_shortcuts; - List command_keys; - void _update_command_search(const String &search_text); float _score_path(const String &p_search, const String &p_path); void _sbox_input(const Ref &p_ie);