From b466a8711b901ba28a755ced617696defef899b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 25 May 2020 09:53:16 +0200 Subject: [PATCH] [apps/code] Remove dead code --- apps/code/variable_box_controller.cpp | 13 ------------- apps/code/variable_box_controller.h | 1 - 2 files changed, 14 deletions(-) diff --git a/apps/code/variable_box_controller.cpp b/apps/code/variable_box_controller.cpp index c94ebe470..4470cf0be 100644 --- a/apps/code/variable_box_controller.cpp +++ b/apps/code/variable_box_controller.cpp @@ -188,19 +188,6 @@ void VariableBoxController::loadFunctionsAndVariables(int scriptIndex, const cha loadCurrentVariablesInScript(scriptContent, textToAutocomplete, textToAutocompleteLength); } -const char * VariableBoxController::autocompletionForText(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses) { - assert(textToAutocompleteLength >= 1); - assert(addParentheses != nullptr); - - // First load variables and functions that complete the textToAutocomplete - loadFunctionsAndVariables(scriptIndex, textToAutocomplete, textToAutocompleteLength); - if (numberOfRows() == 0) { - return nullptr; - } - - return autocompletionAlternativeAtIndex(textToAutocompleteLength, textToInsertLength, addParentheses, 0); -} - const char * VariableBoxController::autocompletionAlternativeAtIndex(int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses, int index, int * indexToUpdate) { if (numberOfRows() == 0) { return nullptr; diff --git a/apps/code/variable_box_controller.h b/apps/code/variable_box_controller.h index da00ba389..cb18d2cc3 100644 --- a/apps/code/variable_box_controller.h +++ b/apps/code/variable_box_controller.h @@ -36,7 +36,6 @@ public: /* VariableBoxController */ void setDisplaySubtitles(bool display) { m_displaySubtitles = display; } void loadFunctionsAndVariables(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength); - const char * autocompletionForText(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses); const char * autocompletionAlternativeAtIndex(int textToAutocompleteLength, int * textToInsertLength, bool * addParentheses, int index, int * indexToUpdate = nullptr); void loadVariablesImportedFromScripts(); void empty();