Commit 7f505011 authored by Bill King's avatar Bill King
Browse files

Fix dead/unnecessary code.

parent 55edbe1c
......@@ -170,9 +170,9 @@ void ModelMerger::replaceModel(const ModelNode &modelNode)
{
RewriterTransaction transaction(view()->beginRewriterTransaction());
foreach (const Import &import, modelNode.model()->imports()) {
// foreach (const Import &import, modelNode.model()->imports()) {
//view()->model()->addImport(import); //###
}
// }
view()->model()->setFileUrl(modelNode.model()->fileUrl());
ModelNode rootNode(view()->rootModelNode());
......
......@@ -50,8 +50,6 @@ static QString serialize(AbstractView::PropertyChangeFlags change)
tokenList.append(QLatin1String("EmptyPropertiesRemoved"));
return tokenList.join(" ");
return QString();
}
static QString indent(const QString &name = QString()) {
......
......@@ -874,8 +874,6 @@ void CheckDeclaration::checkQEnumsQFlagsNames(NameListAST *nameListAst,
const char *declName)
{
for (NameListAST *iter = nameListAst; iter; iter = iter->next) {
if (!iter)
continue;
const Name *name = semantic()->check(iter->value, _scope);
if (!name)
......
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