forked from qt-creator/qt-creator
Fix dead/unnecessary code.
This commit is contained in:
@@ -170,9 +170,9 @@ void ModelMerger::replaceModel(const ModelNode &modelNode)
|
|||||||
{
|
{
|
||||||
RewriterTransaction transaction(view()->beginRewriterTransaction());
|
RewriterTransaction transaction(view()->beginRewriterTransaction());
|
||||||
|
|
||||||
foreach (const Import &import, modelNode.model()->imports()) {
|
// foreach (const Import &import, modelNode.model()->imports()) {
|
||||||
//view()->model()->addImport(import); //###
|
//view()->model()->addImport(import); //###
|
||||||
}
|
// }
|
||||||
view()->model()->setFileUrl(modelNode.model()->fileUrl());
|
view()->model()->setFileUrl(modelNode.model()->fileUrl());
|
||||||
|
|
||||||
ModelNode rootNode(view()->rootModelNode());
|
ModelNode rootNode(view()->rootModelNode());
|
||||||
|
@@ -50,8 +50,6 @@ static QString serialize(AbstractView::PropertyChangeFlags change)
|
|||||||
tokenList.append(QLatin1String("EmptyPropertiesRemoved"));
|
tokenList.append(QLatin1String("EmptyPropertiesRemoved"));
|
||||||
|
|
||||||
return tokenList.join(" ");
|
return tokenList.join(" ");
|
||||||
|
|
||||||
return QString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString indent(const QString &name = QString()) {
|
static QString indent(const QString &name = QString()) {
|
||||||
|
@@ -874,8 +874,6 @@ void CheckDeclaration::checkQEnumsQFlagsNames(NameListAST *nameListAst,
|
|||||||
const char *declName)
|
const char *declName)
|
||||||
{
|
{
|
||||||
for (NameListAST *iter = nameListAst; iter; iter = iter->next) {
|
for (NameListAST *iter = nameListAst; iter; iter = iter->next) {
|
||||||
if (!iter)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
const Name *name = semantic()->check(iter->value, _scope);
|
const Name *name = semantic()->check(iter->value, _scope);
|
||||||
if (!name)
|
if (!name)
|
||||||
|
Reference in New Issue
Block a user