From 80b5a6b50a685d5813e2f05d83ee3f9f5ecba6da Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Fri, 29 Jan 2010 15:28:58 +0100 Subject: [PATCH] Removed useless code. --- src/libs/qmljs/qmljsindenter.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/libs/qmljs/qmljsindenter.cpp b/src/libs/qmljs/qmljsindenter.cpp index 0655946117e..4286c649eb6 100644 --- a/src/libs/qmljs/qmljsindenter.cpp +++ b/src/libs/qmljs/qmljsindenter.cpp @@ -370,20 +370,6 @@ bool QmlJSIndenter::readLine() yyLinizerState.line = trimmedCodeLine(yyLinizerState.line); - /* - Remove preprocessor directives. - */ - k = 0; - while (k < yyLinizerState.line.length()) { - const QChar ch = yyLinizerState.line.at(k); - if (ch == QLatin1Char('#')) { - yyLinizerState.line.clear(); - } else if (!ch.isSpace()) { - break; - } - k++; - } - /* Remove trailing spaces. */ @@ -1044,11 +1030,6 @@ int QmlJSIndenter::indentForBottomLine(QTextBlock begin, QTextBlock end, QChar t } else { indent = indentOfLine(bottomLine); } - } else if (okay(typedIn, QLatin1Char('#')) && firstCh == QLatin1Char('#')) { - /* - Preprocessor directives go flush left. - */ - indent = 0; } else { if (isUnfinishedLine()) { indent = indentForContinuationLine(); -- GitLab