forked from qt-creator/qt-creator
QmlJSEditor: remove unused method
Change-Id: Idab6b104a9e057afde3bcc3059f00592deacfed7 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -500,18 +500,6 @@ QString QmlJSEditorWidget::wordUnderCursor() const
|
|||||||
return word;
|
return word;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QmlJSEditorWidget::isClosingBrace(const QList<Token> &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()
|
void QmlJSEditorWidget::createToolBar()
|
||||||
{
|
{
|
||||||
m_outlineCombo = new QComboBox;
|
m_outlineCombo = new QComboBox;
|
||||||
|
@@ -109,8 +109,6 @@ protected:
|
|||||||
void onRefactorMarkerClicked(const TextEditor::RefactorMarker &marker) override;
|
void onRefactorMarkerClicked(const TextEditor::RefactorMarker &marker) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool isClosingBrace(const QList<QmlJS::Token> &tokens) const;
|
|
||||||
|
|
||||||
void setSelectedElements();
|
void setSelectedElements();
|
||||||
QString wordUnderCursor() const;
|
QString wordUnderCursor() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user