From e4a6f62001c2d9e6a4fcf70a59f38a2372f953b5 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 4 Apr 2017 15:00:10 +0200 Subject: [PATCH] QmlJSEditor: remove unused method Change-Id: Idab6b104a9e057afde3bcc3059f00592deacfed7 Reviewed-by: Marco Benelli --- src/plugins/qmljseditor/qmljseditor.cpp | 12 ------------ src/plugins/qmljseditor/qmljseditor.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 64861b98470..8875253def1 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -500,18 +500,6 @@ QString QmlJSEditorWidget::wordUnderCursor() const return word; } -bool QmlJSEditorWidget::isClosingBrace(const QList &tokens) const -{ - - if (tokens.size() == 1) { - const Token firstToken = tokens.first(); - - return firstToken.is(Token::RightBrace) || firstToken.is(Token::RightBracket); - } - - return false; -} - void QmlJSEditorWidget::createToolBar() { m_outlineCombo = new QComboBox; diff --git a/src/plugins/qmljseditor/qmljseditor.h b/src/plugins/qmljseditor/qmljseditor.h index 5bccf742662..7c0edd5ab53 100644 --- a/src/plugins/qmljseditor/qmljseditor.h +++ b/src/plugins/qmljseditor/qmljseditor.h @@ -109,8 +109,6 @@ protected: void onRefactorMarkerClicked(const TextEditor::RefactorMarker &marker) override; private: - bool isClosingBrace(const QList &tokens) const; - void setSelectedElements(); QString wordUnderCursor() const;