From eadc4bb317f5ccce11da925d5e2bd02e0da0cd14 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 22 Aug 2020 01:44:02 -0400 Subject: [PATCH] Remove unused function inside UserAutoCompletion --- .../Pages/Chat/AutoCompletion/UserAutoCompletion.qml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml index 0a0e2060..d3738300 100644 --- a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml +++ b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml @@ -32,16 +32,6 @@ HListView { open && wordToComplete ? wordToComplete.word : "" - function getCurrentWordStart() { - const lastWordMatch = /(?:^|\s)[^\s]+$/.exec(textArea.text) - if (! lastWordMatch) return textArea.length - - if (! (lastWordMatch.index === 0 && ! textArea.text[0].match(/\s/))) - return lastWordMatch.index + 1 - - return lastWordMatch.index - } - function replaceCompletionOrCurrentWord(withText) { const current = textArea.getWordBehindCursor() if (! current) return