Browse Source

Merge pull request #86723 from ryevdokimov/remove-unused-code

Removed unused code related to command palette
Rémi Verschelde 1 year ago
parent
commit
d4b33b3e9f
2 changed files with 0 additions and 4 deletions
  1. 0 2
      editor/editor_command_palette.cpp
  2. 0 2
      editor/editor_command_palette.h

+ 0 - 2
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();
 

+ 0 - 2
editor/editor_command_palette.h

@@ -77,8 +77,6 @@ class EditorCommandPalette : public ConfirmationDialog {
 	HashMap<String, Command> commands;
 	HashMap<String, Pair<String, Ref<Shortcut>>> unregistered_shortcuts;
 
-	List<String> 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<InputEvent> &p_ie);