mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Remove unused functions and argument
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user