From 934e5d0336577e9c910bd234ab57f7d1c4fcc734 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Thu, 14 Jan 2010 11:01:20 +0100
Subject: [PATCH] Removed obsolete code.

---
 src/shared/qscripthighlighter/qscriptindenter.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/shared/qscripthighlighter/qscriptindenter.cpp b/src/shared/qscripthighlighter/qscriptindenter.cpp
index 01d3523f336..b030c4b6c90 100644
--- a/src/shared/qscripthighlighter/qscriptindenter.cpp
+++ b/src/shared/qscripthighlighter/qscriptindenter.cpp
@@ -648,12 +648,12 @@ bool QScriptIndenter::isUnfinishedLine()
         return false;
 
     QChar lastCh = yyLine->at(yyLine->length() - 1);
-    if (QString::fromLatin1("{};").indexOf(lastCh) == -1 && !yyLine->endsWith("...")) {
+    if (QString::fromLatin1("{};").indexOf(lastCh) == -1) {
         /*
-          It doesn't end with ';' or similar. If it's neither
-          "Q_OBJECT" nor "if (x)", it must be an unfinished line.
+          It doesn't end with ';' or similar. If it's not an "if (x)", it must be an unfinished line.
         */
         unf = ! matchBracelessControlStatement();
+
         if (unf && lastCh == QLatin1Char(')'))
             unf = false;
 
-- 
GitLab