forked from qt-creator/qt-creator
QmlJSEditor: Fix compilation warning (gcc)
Reviewed-by: Christian Kamm
(cherry picked from commit 3281a9e691
)
This commit is contained in:
committed by
Robert Loehning
parent
0ecb30a9ec
commit
65ef113367
@@ -82,15 +82,6 @@ using namespace QmlJS;
|
||||
using namespace QmlJS::AST;
|
||||
using namespace QmlJSEditor::Internal;
|
||||
|
||||
static int blockBraceDepth(const QTextBlock &block)
|
||||
{
|
||||
int state = block.userState();
|
||||
if (state == -1)
|
||||
return 0;
|
||||
|
||||
return (state >> 8) & 0xFF;
|
||||
}
|
||||
|
||||
static int blockStartState(const QTextBlock &block)
|
||||
{
|
||||
int state = block.userState();
|
||||
|
Reference in New Issue
Block a user