Designer: Remove dead code

Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-29 15:06:46 +01:00
parent fcbe75f9e4
commit 8b48f47d12

View File

@@ -155,13 +155,10 @@ QString fullyQualifiedName(const LookupContext &context, const Name *name, Scope
return QString();
const QList<LookupItem> items = context.lookup(name, scope);
if (items.isEmpty()) { // "ui_xxx.h" might not be generated and nothing is forward declared.
if (items.isEmpty()) // "ui_xxx.h" might not be generated and nothing is forward declared.
return Overview().prettyName(name);
} else {
Symbol *symbol = items.first().declaration();
return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
}
return QString();
}
// Find class definition in namespace (that is, the outer class