Commit cf96bc10 authored by Christian Kamm's avatar Christian Kamm

Remove some dead stores pointed out by clang.

Change-Id: I919a2e98474fec42861391d11d2ba1225eb2adf9
Reviewed-on: http://codereview.qt.nokia.com/4083Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 85482ff5
......@@ -2111,10 +2111,6 @@ bool Bind::visit(ParameterDeclarationAST *ast)
// unsigned equal_token = ast->equal_token;
ExpressionTy expression = this->expression(ast->expression);
unsigned sourceLocation = ast->firstToken();
if (declaratorId)
sourceLocation = declaratorId->firstToken();
const Name *argName = 0;
if (declaratorId && declaratorId->name)
argName = declaratorId->name->name;
......
......@@ -590,7 +590,6 @@ void Lexer::scan_helper(Token *tok)
break;
} else if (ch == '@' && _yychar == '"') {
// objc @string literals
ch = _yychar;
yyinp();
tok->f.kind = T_AT_STRING_LITERAL;
......
......@@ -201,9 +201,11 @@ bool HoverHandler::matchColorItem(const ScopeChain &scopeChain,
value = scopeChain.lookup(publicMember->name->asString());
if (const Reference *ref = value->asReference())
value = scopeChain.context()->lookupReference(ref);
if (value && value->asColorValue()) {
color = textAt(qmlDocument,
publicMember->statement->firstSourceLocation(),
publicMember->statement->lastSourceLocation());
}
}
}
......
......@@ -558,20 +558,6 @@ void ModelManager::parse(QFutureInterface<void> &future,
const QString fileName = files.at(i);
bool isQmlFile = true;
if (db) {
if (suffixMatches(fileName, jsSourceTy)) {
isQmlFile = false;
} else if (! suffixMatches(fileName, qmlSourceTy)) {
continue; // skip it. it's not a QML or a JS file.
}
} else {
if (fileName.contains(QLatin1String(".js"), Qt::CaseInsensitive))
isQmlFile = false;
else if (!fileName.contains(QLatin1String(".qml"), Qt::CaseInsensitive))
continue;
}
QString contents;
int documentRevision = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment