Skip to content
Snippets Groups Projects
Commit 80b5a6b5 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed useless code.

parent a7550b22
No related branches found
No related tags found
No related merge requests found
...@@ -370,20 +370,6 @@ bool QmlJSIndenter::readLine() ...@@ -370,20 +370,6 @@ bool QmlJSIndenter::readLine()
yyLinizerState.line = trimmedCodeLine(yyLinizerState.line); 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. Remove trailing spaces.
*/ */
...@@ -1044,11 +1030,6 @@ int QmlJSIndenter::indentForBottomLine(QTextBlock begin, QTextBlock end, QChar t ...@@ -1044,11 +1030,6 @@ int QmlJSIndenter::indentForBottomLine(QTextBlock begin, QTextBlock end, QChar t
} else { } else {
indent = indentOfLine(bottomLine); indent = indentOfLine(bottomLine);
} }
} else if (okay(typedIn, QLatin1Char('#')) && firstCh == QLatin1Char('#')) {
/*
Preprocessor directives go flush left.
*/
indent = 0;
} else { } else {
if (isUnfinishedLine()) { if (isUnfinishedLine()) {
indent = indentForContinuationLine(); indent = indentForContinuationLine();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment