forked from qt-creator/qt-creator
QmlJS highlighter: Remove unused function.
Change-Id: I7ddf5783402b0a2262be2e0142b4125db2d55cbf Reviewed-on: http://codereview.qt-project.org/4883 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -65,21 +65,6 @@ void Highlighter::setQmlEnabled(bool qmlEnabled)
|
||||
m_qmlEnabled = qmlEnabled;
|
||||
}
|
||||
|
||||
static bool checkStartOfBinding(const Token &token)
|
||||
{
|
||||
switch (token.kind) {
|
||||
case Token::Semicolon:
|
||||
case Token::LeftBrace:
|
||||
case Token::RightBrace:
|
||||
case Token::LeftBracket:
|
||||
case Token::RightBracket:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
} // end of switch
|
||||
}
|
||||
|
||||
void Highlighter::setFormats(const QVector<QTextCharFormat> &formats)
|
||||
{
|
||||
QTC_ASSERT(formats.size() == NumFormats, return);
|
||||
|
||||
Reference in New Issue
Block a user