[apps/code] Remove unused functions and argument

This commit is contained in:
Léa Saviot
2020-03-26 15:56:32 +01:00
committed by Émilie Feral
parent bc4d96bc3f
commit 14f914e3d6
4 changed files with 3 additions and 25 deletions

View File

@@ -53,13 +53,8 @@ static inline size_t TokenLength(mp_lexer_t * lex, const char * tokenPosition) {
return lex->column - lex->tok_column;
}
const char * PythonTextArea::ContentView::textToAutocomplete(int * length) const {
const char * result = UTF8Helper::BeginningOfWord(editedText(), cursorLocation());
if (length != nullptr) {
*length = cursorLocation() - result;
assert(*length > 0);
}
return result;
const char * PythonTextArea::ContentView::textToAutocomplete() const {
return UTF8Helper::BeginningOfWord(editedText(), cursorLocation());
}
void PythonTextArea::ContentView::loadSyntaxHighlighter() {
@@ -240,13 +235,6 @@ bool PythonTextArea::handleEventWithText(const char * text, bool indentation, bo
return result;
}
const char * PythonTextArea::textToAutocomplete(int * length) const {
if (!m_contentView.isAutocompleting()) {
return nullptr;
}
return m_contentView.textToAutocomplete(length);
}
void PythonTextArea::removeAutocompletion() {
assert(m_contentView.isAutocompleting());
const char * autocompleteStart = m_contentView.cursorLocation();