From 65ef113367e4d5ec8d975f6a8a92358d0a8504ba Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 29 Jun 2010 09:28:45 +0200 Subject: [PATCH] QmlJSEditor: Fix compilation warning (gcc) Reviewed-by: Christian Kamm (cherry picked from commit 3281a9e691910efabee97c2c88f54a0cc5435b4a) --- src/plugins/qmljseditor/qmljseditor.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index d56368a042a..7f0a4e24770 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -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();