summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-11-29 15:06:46 +0100
committerTobias Hunger <tobias.hunger@qt.io>2016-12-06 10:11:51 +0000
commit8b48f47d129db4d590446c10f71dd49d038c0379 (patch)
tree1dc4e8ca878e055593cdae108882b9b4f6a0a301
parentfcbe75f9e4f919941f46d1e2e3313b6f8bbc7be8 (diff)
downloadqt-creator-8b48f47d129db4d590446c10f71dd49d038c0379.tar.gz
Designer: Remove dead code
Change-Id: I8f930ffff178e9a1c4547331a1e92609657dbc00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--src/plugins/designer/qtcreatorintegration.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp
index 8deb0e996f..fb0f964282 100644
--- a/src/plugins/designer/qtcreatorintegration.cpp
+++ b/src/plugins/designer/qtcreatorintegration.cpp
@@ -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();
+ Symbol *symbol = items.first().declaration();
+ return Overview().prettyName(LookupContext::fullyQualifiedName(symbol));
}
// Find class definition in namespace (that is, the outer class